<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>opennars: aruntime/src/main/java/nars/entity/Concept.java Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">opennars
   &#160;<span id="projectnumber">1.5.5</span>
   </div>
   <div id="projectbrief">1.5-ish</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="../../namespaces.html"><span>Packages</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('df/d62/Concept_8java_source.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Concept.java</div>  </div>
</div><!--header-->
<div class="contents">
<a href="../../df/d62/Concept_8java.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Concept.java</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Copyright (C) 2008  Pei Wang</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * This file is part of Open-NARS.</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * Open-NARS is free software; you can redistribute it and/or modify</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * the Free Software Foundation, either version 2 of the License, or</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * (at your option) any later version.</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * Open-NARS is distributed in the hope that it will be useful,</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * GNU General Public License for more details.</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * along with Open-NARS.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keyword">package </span>nars.entity;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">import</span> java.util.ArrayList;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">import</span> java.util.List;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">import</span> <a class="code" href="../../d7/d81/namespacenars.html">nars</a>.data.BudgetStruct;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="keyword">import</span> <a class="code" href="../../d7/d81/namespacenars.html">nars</a>.<a class="code" href="../../d9/d79/namespacenars_1_1inference.html">inference</a>.<a class="code" href="../../d7/d11/classnars_1_1inference_1_1BudgetFunctions.html">BudgetFunctions</a>;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="keyword">import</span> <a class="code" href="../../d7/d81/namespacenars.html">nars</a>.<a class="code" href="../../d9/d79/namespacenars_1_1inference.html">inference</a>.<a class="code" href="../../d4/de9/classnars_1_1inference_1_1LocalRules.html">LocalRules</a>;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">import</span> <a class="code" href="../../d7/d81/namespacenars.html">nars</a>.<a class="code" href="../../d9/d79/namespacenars_1_1inference.html">inference</a>.<a class="code" href="../../da/de3/classnars_1_1inference_1_1RuleTables.html">RuleTables</a>;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="keyword">import</span> <a class="code" href="../../d7/d81/namespacenars.html">nars</a>.<a class="code" href="../../d9/d79/namespacenars_1_1inference.html">inference</a>.<a class="code" href="../../d4/de4/classnars_1_1inference_1_1UtilityFunctions.html">UtilityFunctions</a>;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="keyword">import</span> <a class="code" href="../../d7/d81/namespacenars.html">nars</a>.<a class="code" href="../../d0/d72/namespacenars_1_1language.html">language</a>.<a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm.html">CompoundTerm</a>;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="keyword">import</span> <a class="code" href="../../d7/d81/namespacenars.html">nars</a>.<a class="code" href="../../d0/d72/namespacenars_1_1language.html">language</a>.<a class="code" href="../../d8/db8/classnars_1_1language_1_1Term.html">Term</a>;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="keyword">import</span> <a class="code" href="../../d7/d81/namespacenars.html">nars</a>.<a class="code" href="../../de/ddc/namespacenars_1_1storage.html">storage</a>.<a class="code" href="../../d9/d37/classnars_1_1storage_1_1Bag.html">Bag</a>;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">import</span> <a class="code" href="../../d7/d81/namespacenars.html">nars</a>.<a class="code" href="../../de/ddc/namespacenars_1_1storage.html">storage</a>.<a class="code" href="../../df/d32/interfacenars_1_1storage_1_1BagObserver.html">BagObserver</a>;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keyword">import</span> <a class="code" href="../../d7/d81/namespacenars.html">nars</a>.<a class="code" href="../../de/ddc/namespacenars_1_1storage.html">storage</a>.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory.html">Memory</a>;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keyword">import</span> <a class="code" href="../../d7/d81/namespacenars.html">nars</a>.<a class="code" href="../../de/ddc/namespacenars_1_1storage.html">storage</a>.<a class="code" href="../../d4/d76/classnars_1_1storage_1_1NullBagObserver.html">NullBagObserver</a>;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="keyword">import</span> <a class="code" href="../../d7/d81/namespacenars.html">nars</a>.<a class="code" href="../../de/ddc/namespacenars_1_1storage.html">storage</a>.<a class="code" href="../../dc/d45/classnars_1_1storage_1_1TaskLinkBag.html">TaskLinkBag</a>;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="keyword">import</span> <a class="code" href="../../d7/d81/namespacenars.html">nars</a>.<a class="code" href="../../de/ddc/namespacenars_1_1storage.html">storage</a>.<a class="code" href="../../de/d86/classnars_1_1storage_1_1TermLinkBag.html">TermLinkBag</a>;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept.html">   47</a></span>&#160;<span class="keyword">public</span> <span class="keyword">final</span> <span class="keyword">class </span><a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept.html">Concept</a> <span class="keyword">extends</span> <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item.html">Item</a> {</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_a414c1b5d8ad3baa2ecdf65204b68d485.html#a414c1b5d8ad3baa2ecdf65204b68d485">   50</a></span>&#160;    <span class="keyword">private</span> <a class="code" href="../../d8/db8/classnars_1_1language_1_1Term.html">Term</a> <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a414c1b5d8ad3baa2ecdf65204b68d485.html#a414c1b5d8ad3baa2ecdf65204b68d485">term</a>;</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_aba5d1c9254d00f04de039f73bef26243.html#aba5d1c9254d00f04de039f73bef26243">   52</a></span>&#160;    <span class="keyword">private</span> <a class="code" href="../../dc/d45/classnars_1_1storage_1_1TaskLinkBag.html">TaskLinkBag</a> <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_aba5d1c9254d00f04de039f73bef26243.html#aba5d1c9254d00f04de039f73bef26243">taskLinks</a>;</div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_ada871bb544e0669e0497e888b68d38d5.html#ada871bb544e0669e0497e888b68d38d5">   54</a></span>&#160;    <span class="keyword">private</span> <a class="code" href="../../de/d86/classnars_1_1storage_1_1TermLinkBag.html">TermLinkBag</a> <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_ada871bb544e0669e0497e888b68d38d5.html#ada871bb544e0669e0497e888b68d38d5">termLinks</a>;</div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_a201858931ec115680ef147dc4819d92b.html#a201858931ec115680ef147dc4819d92b">   57</a></span>&#160;    <span class="keyword">private</span> ArrayList&lt;TermLink&gt; <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a201858931ec115680ef147dc4819d92b.html#a201858931ec115680ef147dc4819d92b">termLinkTemplates</a>;</div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_a64d60676d973a0ebf9132552d01522c2.html#a64d60676d973a0ebf9132552d01522c2">   59</a></span>&#160;    <span class="keyword">private</span> List&lt;Task&gt; <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a64d60676d973a0ebf9132552d01522c2.html#a64d60676d973a0ebf9132552d01522c2">questions</a>;</div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_a8b68e5eb605ffd96cf53c86b5368caa2.html#a8b68e5eb605ffd96cf53c86b5368caa2">   61</a></span>&#160;    <span class="keyword">private</span> ArrayList&lt;Sentence&gt; <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a8b68e5eb605ffd96cf53c86b5368caa2.html#a8b68e5eb605ffd96cf53c86b5368caa2">beliefs</a>;</div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_a2ab0b0c82e09c852076ce4c90c502d4c.html#a2ab0b0c82e09c852076ce4c90c502d4c">   63</a></span>&#160;    <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory.html">Memory</a> <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a2ab0b0c82e09c852076ce4c90c502d4c.html#a2ab0b0c82e09c852076ce4c90c502d4c">memory</a>;</div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_adc7e06bbf7571dbe4df1de8d70fd89b9.html#adc7e06bbf7571dbe4df1de8d70fd89b9">   65</a></span>&#160;    <span class="keyword">private</span> <a class="code" href="../../d4/d96/interfacenars_1_1entity_1_1EntityObserver.html">EntityObserver</a> <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_adc7e06bbf7571dbe4df1de8d70fd89b9.html#adc7e06bbf7571dbe4df1de8d70fd89b9">entityObserver</a> = <span class="keyword">new</span> <a class="code" href="../../d5/dbd/classnars_1_1entity_1_1Concept_1_1NullEntityObserver.html">NullEntityObserver</a>();</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="comment">/* ---------- constructor and initialization ---------- */</span></div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_a2aaa4a9fe0cb1841ba426f323a08b7eb.html#a2aaa4a9fe0cb1841ba426f323a08b7eb">   74</a></span>&#160;    <span class="keyword">public</span> <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a2aaa4a9fe0cb1841ba426f323a08b7eb.html#a2aaa4a9fe0cb1841ba426f323a08b7eb">Concept</a>(<a class="code" href="../../d8/db8/classnars_1_1language_1_1Term.html">Term</a> tm, <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory.html">Memory</a> memory) {</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        super(tm.<a class="code" href="../../d8/db8/classnars_1_1language_1_1Term_a3aad4654016b8615fd4fa8a26668e1db.html#a3aad4654016b8615fd4fa8a26668e1db">getName</a>());</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        term = tm;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        this.memory = <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a2ab0b0c82e09c852076ce4c90c502d4c.html#a2ab0b0c82e09c852076ce4c90c502d4c">memory</a>;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        questions = <span class="keyword">new</span> ArrayList&lt;Task&gt;();</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        beliefs = <span class="keyword">new</span> ArrayList&lt;Sentence&gt;();</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        taskLinks = <span class="keyword">new</span> <a class="code" href="../../dc/d45/classnars_1_1storage_1_1TaskLinkBag.html">TaskLinkBag</a>(memory);</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;        termLinks = <span class="keyword">new</span> <a class="code" href="../../de/d86/classnars_1_1storage_1_1TermLinkBag.html">TermLinkBag</a>(memory);</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        <span class="keywordflow">if</span> (tm instanceof <a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm.html">CompoundTerm</a>) {</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;            termLinkTemplates = ((CompoundTerm) tm).prepareComponentLinks();</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        }</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    }</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <span class="comment">/* ---------- direct processing of tasks ---------- */</span></div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_a9ea7c3154932d7a736c105eb55daeb5c.html#a9ea7c3154932d7a736c105eb55daeb5c">   96</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a9ea7c3154932d7a736c105eb55daeb5c.html#a9ea7c3154932d7a736c105eb55daeb5c">directProcess</a>(<a class="code" href="../../dc/ddc/classnars_1_1entity_1_1Task.html">Task</a> task) {</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;        <span class="keywordflow">if</span> (task.<a class="code" href="../../dc/ddc/classnars_1_1entity_1_1Task_ab140cb553a6cf40b07093d1df283567f.html#ab140cb553a6cf40b07093d1df283567f">getSentence</a>().<a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence_a7d95d60caaf4c895559182a7eb2ff71e.html#a7d95d60caaf4c895559182a7eb2ff71e">isJudgment</a>()) {</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;            <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a40cddcc82ee28a1cf5b1f4bc14e2b078.html#a40cddcc82ee28a1cf5b1f4bc14e2b078">processJudgment</a>(task);</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;            <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a3900248991e7adb57e82231312337f8f.html#a3900248991e7adb57e82231312337f8f">processQuestion</a>(task);</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        }</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;        <span class="keywordflow">if</span> (task.<a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_a54fc0a370b847dd77c0a698c765e6e55.html#a54fc0a370b847dd77c0a698c765e6e55">getBudget</a>().<a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ae83b822f3bab4c1831e94d72fc770f58.html#ae83b822f3bab4c1831e94d72fc770f58">aboveThreshold</a>()) {    <span class="comment">// still need to be processed</span></div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;            <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a501121a11fc046eea4b69720cb622d84.html#a501121a11fc046eea4b69720cb622d84">linkToTask</a>(task);</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        }</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        entityObserver.<a class="code" href="../../d4/d96/interfacenars_1_1entity_1_1EntityObserver_a3c3e962c8312f339b670085de1e3de67.html#a3c3e962c8312f339b670085de1e3de67">refresh</a>(<a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a2b2088a51d2519fe76c791b6c6945409.html#a2b2088a51d2519fe76c791b6c6945409">displayContent</a>());</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    }</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_a40cddcc82ee28a1cf5b1f4bc14e2b078.html#a40cddcc82ee28a1cf5b1f4bc14e2b078">  114</a></span>&#160;    <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a40cddcc82ee28a1cf5b1f4bc14e2b078.html#a40cddcc82ee28a1cf5b1f4bc14e2b078">processJudgment</a>(<a class="code" href="../../dc/ddc/classnars_1_1entity_1_1Task.html">Task</a> task) {</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        <a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence.html">Sentence</a> judg = task.<a class="code" href="../../dc/ddc/classnars_1_1entity_1_1Task_ab140cb553a6cf40b07093d1df283567f.html#ab140cb553a6cf40b07093d1df283567f">getSentence</a>();</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;        <a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence.html">Sentence</a> oldBelief = <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a3da4b5320acef5ecbcb256090e4aff94.html#a3da4b5320acef5ecbcb256090e4aff94">evaluation</a>(judg, beliefs);</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        <span class="keywordflow">if</span> (oldBelief != null) {</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;            <a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp.html">Stamp</a> newStamp = judg.<a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence_ac0ed749c50e55120d5b63219ed7eb082.html#ac0ed749c50e55120d5b63219ed7eb082">getStamp</a>(), oldStamp = oldBelief.<a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence_ac0ed749c50e55120d5b63219ed7eb082.html#ac0ed749c50e55120d5b63219ed7eb082">getStamp</a>();</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;            <span class="keywordflow">if</span> (newStamp.<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_adb33cdf9f13e1a919f7220cb622e7446.html#adb33cdf9f13e1a919f7220cb622e7446">equals</a>(oldStamp)) {</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;                task.<a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_a54fc0a370b847dd77c0a698c765e6e55.html#a54fc0a370b847dd77c0a698c765e6e55">getBudget</a>().<a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a27f92b156f0a25520e38a489ec6fc214.html#a27f92b156f0a25520e38a489ec6fc214">decPriority</a>(0);    <span class="comment">// duplicated task</span></div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;                <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;            } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="../../d4/de9/classnars_1_1inference_1_1LocalRules.html">LocalRules</a>.<a class="code" href="../../d4/de9/classnars_1_1inference_1_1LocalRules_a21cfc2af8051142d084776d0bbc618e6.html#a21cfc2af8051142d084776d0bbc618e6">revisible</a>(judg, oldBelief)) {</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;                memory.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_aa8d87fbd9fbd6229e88184fd23553778.html#aa8d87fbd9fbd6229e88184fd23553778">setNewStamp</a>(<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp.html">Stamp</a>.<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a47f0e631d97f15a4b6520847c2c4d62a.html#a47f0e631d97f15a4b6520847c2c4d62a">make</a>(newStamp, oldStamp, memory.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_aaa97540563b646b33db1263fa3a97d53.html#aaa97540563b646b33db1263fa3a97d53">getTime</a>()));</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;                <span class="keywordflow">if</span> (memory.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a09af34150e8562d5c93170388c8804b7.html#a09af34150e8562d5c93170388c8804b7">getNewStamp</a>() != null) {</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;                    memory.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a3482da9df329962e73213118fbaef131.html#a3482da9df329962e73213118fbaef131">setCurrentBelief</a>(oldBelief);</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;                    <a class="code" href="../../d4/de9/classnars_1_1inference_1_1LocalRules.html">LocalRules</a>.<a class="code" href="../../d4/de9/classnars_1_1inference_1_1LocalRules_a40edb0903d098da966e3ef972e5c8abd.html#a40edb0903d098da966e3ef972e5c8abd">revision</a>(judg, oldBelief, <span class="keyword">false</span>, memory);</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;                }</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;            }</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;        }</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;        <span class="keywordflow">if</span> (task.<a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_a54fc0a370b847dd77c0a698c765e6e55.html#a54fc0a370b847dd77c0a698c765e6e55">getBudget</a>().<a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ae83b822f3bab4c1831e94d72fc770f58.html#ae83b822f3bab4c1831e94d72fc770f58">aboveThreshold</a>()) {</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;            <span class="keywordflow">for</span> (<a class="code" href="../../dc/ddc/classnars_1_1entity_1_1Task.html">Task</a> ques : questions) {</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="comment">//                LocalRules.trySolution(ques.getSentence(), judg, ques, memory);</span></div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;                <a class="code" href="../../d4/de9/classnars_1_1inference_1_1LocalRules.html">LocalRules</a>.<a class="code" href="../../d4/de9/classnars_1_1inference_1_1LocalRules_a3ecf859c238ad7f0c44c45e3e5df0081.html#a3ecf859c238ad7f0c44c45e3e5df0081">trySolution</a>(judg, ques, memory);</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;            }</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;            <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a83976b43424cb26fe9cea8654cfee743.html#a83976b43424cb26fe9cea8654cfee743">addToTable</a>(judg, beliefs, <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory.html">Memory</a>.<a class="code" href="../../da/d3b/classnars_1_1storage_1_1Memory_1_1Parameters.html">Parameters</a>.<a class="code" href="../../da/d3b/classnars_1_1storage_1_1Memory_1_1Parameters_a99c4a4dd667b5cf604c0b2be1352c29e.html#a99c4a4dd667b5cf604c0b2be1352c29e">MAXIMUM_BELIEF_LENGTH</a>);</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;        }</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    }</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;</div>
<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_a3900248991e7adb57e82231312337f8f.html#a3900248991e7adb57e82231312337f8f">  144</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">float</span> <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a3900248991e7adb57e82231312337f8f.html#a3900248991e7adb57e82231312337f8f">processQuestion</a>(<a class="code" href="../../dc/ddc/classnars_1_1entity_1_1Task.html">Task</a> task) {</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;        <a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence.html">Sentence</a> ques = task.<a class="code" href="../../dc/ddc/classnars_1_1entity_1_1Task_ab140cb553a6cf40b07093d1df283567f.html#ab140cb553a6cf40b07093d1df283567f">getSentence</a>();</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;        <span class="keywordtype">boolean</span> newQuestion = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;        <span class="keywordflow">if</span> (questions != null) {</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;            <span class="keywordflow">for</span> (<a class="code" href="../../dc/ddc/classnars_1_1entity_1_1Task.html">Task</a> t : questions) {</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;                <a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence.html">Sentence</a> q = t.getSentence();</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;                <span class="keywordflow">if</span> (q.<a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence_ad1ded9a02cae3557948d05530cd4d37e.html#ad1ded9a02cae3557948d05530cd4d37e">getContent</a>().<a class="code" href="../../d8/db8/classnars_1_1language_1_1Term_ad85f45a7858737445d5158801774ff5f.html#ad85f45a7858737445d5158801774ff5f">equals</a>(ques.<a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence_ad1ded9a02cae3557948d05530cd4d37e.html#ad1ded9a02cae3557948d05530cd4d37e">getContent</a>())) {</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;                    ques = q;</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;                    newQuestion = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;                    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;                }</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;            }</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;        }</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;        <span class="keywordflow">if</span> (newQuestion) {</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;            questions.add(task);</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;        }</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;        <span class="keywordflow">if</span> (questions.size() &gt; <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory.html">Memory</a>.<a class="code" href="../../da/d3b/classnars_1_1storage_1_1Memory_1_1Parameters.html">Parameters</a>.<a class="code" href="../../da/d3b/classnars_1_1storage_1_1Memory_1_1Parameters_a78a685447aedc396f4dbe6cd2748b8e8.html#a78a685447aedc396f4dbe6cd2748b8e8">MAXIMUM_QUESTIONS_LENGTH</a>) {</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;            questions.remove(0);    <span class="comment">// FIFO</span></div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;        }</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;        <a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence.html">Sentence</a> newAnswer = <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a3da4b5320acef5ecbcb256090e4aff94.html#a3da4b5320acef5ecbcb256090e4aff94">evaluation</a>(ques, beliefs);</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;        <span class="keywordflow">if</span> (newAnswer != null) {</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;<span class="comment">//            LocalRules.trySolution(ques, newAnswer, task, memory);</span></div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;            <a class="code" href="../../d4/de9/classnars_1_1inference_1_1LocalRules.html">LocalRules</a>.<a class="code" href="../../d4/de9/classnars_1_1inference_1_1LocalRules_a3ecf859c238ad7f0c44c45e3e5df0081.html#a3ecf859c238ad7f0c44c45e3e5df0081">trySolution</a>(newAnswer, task, memory);</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;            <span class="keywordflow">return</span> newAnswer.<a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence_a9f69b4fef64c81abad21404946cd41f9.html#a9f69b4fef64c81abad21404946cd41f9">getTruth</a>().<a class="code" href="../../d3/db8/classnars_1_1entity_1_1TruthValue_aa5ffcde3ae611b087ba7fdd4cd67b216.html#aa5ffcde3ae611b087ba7fdd4cd67b216">getExpectation</a>();</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;            <span class="keywordflow">return</span> 0.5f;</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;        }</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    }</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;</div>
<div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_a501121a11fc046eea4b69720cb622d84.html#a501121a11fc046eea4b69720cb622d84">  181</a></span>&#160;    <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a501121a11fc046eea4b69720cb622d84.html#a501121a11fc046eea4b69720cb622d84">linkToTask</a>(<a class="code" href="../../dc/ddc/classnars_1_1entity_1_1Task.html">Task</a> task) {</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;        <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue.html">BudgetValue</a> taskBudget = task.<a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_a54fc0a370b847dd77c0a698c765e6e55.html#a54fc0a370b847dd77c0a698c765e6e55">getBudget</a>();</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;        <a class="code" href="../../d9/d27/classnars_1_1entity_1_1TaskLink.html">TaskLink</a> taskLink = <span class="keyword">new</span> <a class="code" href="../../d9/d27/classnars_1_1entity_1_1TaskLink.html">TaskLink</a>(task, null, taskBudget);   <span class="comment">// link type: SELF</span></div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;        <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_aef21f5ae7bef5194bd37ae526302843d.html#aef21f5ae7bef5194bd37ae526302843d">insertTaskLink</a>(taskLink);</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;        <span class="keywordflow">if</span> (term instanceof <a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm.html">CompoundTerm</a>) {</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;            <span class="keywordflow">if</span> (termLinkTemplates.size() &gt; 0) {</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;                <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue.html">BudgetValue</a> subBudget = <a class="code" href="../../d7/d11/classnars_1_1inference_1_1BudgetFunctions.html">BudgetFunctions</a>.<a class="code" href="../../d7/d11/classnars_1_1inference_1_1BudgetFunctions_a9c5299387c81abfc7a7c6fbf72febdc3.html#a9c5299387c81abfc7a7c6fbf72febdc3">distributeAmongLinks</a>(taskBudget, termLinkTemplates.size());</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;                <span class="keywordflow">if</span> (subBudget.<a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ae83b822f3bab4c1831e94d72fc770f58.html#ae83b822f3bab4c1831e94d72fc770f58">aboveThreshold</a>()) {</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;                    <a class="code" href="../../d8/db8/classnars_1_1language_1_1Term.html">Term</a> componentTerm;</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;                    <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept.html">Concept</a> componentConcept;</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;                    <span class="keywordflow">for</span> (<a class="code" href="../../d4/d8b/classnars_1_1entity_1_1TermLink.html">TermLink</a> termLink : termLinkTemplates) {</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;<span class="comment">//                        if (!(task.isStructural() &amp;&amp; (termLink.getType() == TermLink.TRANSFORM))) { // avoid circular transform</span></div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;                        taskLink = <span class="keyword">new</span> <a class="code" href="../../d9/d27/classnars_1_1entity_1_1TaskLink.html">TaskLink</a>(task, termLink, subBudget);</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;                        componentTerm = termLink.getTarget();</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;                        componentConcept = memory.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a3f45cdc40973611106276cfbc27a7a7a.html#a3f45cdc40973611106276cfbc27a7a7a">getConcept</a>(componentTerm);</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;                        <span class="keywordflow">if</span> (componentConcept != null) {</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;                            componentConcept.<a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_aef21f5ae7bef5194bd37ae526302843d.html#aef21f5ae7bef5194bd37ae526302843d">insertTaskLink</a>(taskLink);</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;                        }</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;<span class="comment">//                        }</span></div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;                    }</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;                    <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a3f3f026223e459e041fbdd8c0f49f7c6.html#a3f3f026223e459e041fbdd8c0f49f7c6">buildTermLinks</a>(taskBudget);  <span class="comment">// recursively insert TermLink</span></div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;                }</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;            }</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;        }</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    }</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;</div>
<div class="line"><a name="l00214"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_a83976b43424cb26fe9cea8654cfee743.html#a83976b43424cb26fe9cea8654cfee743">  214</a></span>&#160;    <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a83976b43424cb26fe9cea8654cfee743.html#a83976b43424cb26fe9cea8654cfee743">addToTable</a>(<a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence.html">Sentence</a> newSentence, ArrayList&lt;Sentence&gt; table, <span class="keywordtype">int</span> capacity) {</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;        <span class="keywordtype">float</span> rank1 = <a class="code" href="../../d7/d11/classnars_1_1inference_1_1BudgetFunctions.html">BudgetFunctions</a>.<a class="code" href="../../d7/d11/classnars_1_1inference_1_1BudgetFunctions_a5c7290e12cda0925b936c07ed7b806f3.html#a5c7290e12cda0925b936c07ed7b806f3">rankBelief</a>(newSentence);    <span class="comment">// for the new isBelief</span></div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;        <a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence.html">Sentence</a> judgment2;</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;        <span class="keywordtype">float</span> rank2;</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;        <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;        <span class="keywordflow">for</span> (i = 0; i &lt; table.size(); i++) {</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;            judgment2 = (<a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence.html">Sentence</a>) table.get(i);</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;            rank2 = <a class="code" href="../../d7/d11/classnars_1_1inference_1_1BudgetFunctions.html">BudgetFunctions</a>.<a class="code" href="../../d7/d11/classnars_1_1inference_1_1BudgetFunctions_a5c7290e12cda0925b936c07ed7b806f3.html#a5c7290e12cda0925b936c07ed7b806f3">rankBelief</a>(judgment2);</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;            <span class="keywordflow">if</span> (rank1 &gt;= rank2) {</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;                <span class="keywordflow">if</span> (newSentence.<a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence_a8fee2d32f0024964146b13d7698210c5.html#a8fee2d32f0024964146b13d7698210c5">equivalentTo</a>(judgment2)) {</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;                    <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;                }</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;                table.add(i, newSentence);</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;            }</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;        }</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;        <span class="keywordflow">if</span> (table.size() &gt;= capacity) {</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;            <span class="keywordflow">while</span> (table.size() &gt; capacity) {</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;                table.remove(table.size() - 1);</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;            }</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;        } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (i == table.size()) {</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;            table.add(newSentence);</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;        }</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;    }</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;</div>
<div class="line"><a name="l00245"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_a3da4b5320acef5ecbcb256090e4aff94.html#a3da4b5320acef5ecbcb256090e4aff94">  245</a></span>&#160;    <span class="keyword">private</span> <a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence.html">Sentence</a> <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a3da4b5320acef5ecbcb256090e4aff94.html#a3da4b5320acef5ecbcb256090e4aff94">evaluation</a>(<a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence.html">Sentence</a> query, Iterable&lt;Sentence&gt; list) {</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;        <span class="keywordflow">if</span> (list == null) {</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;            <span class="keywordflow">return</span> null;</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;        }</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;        <span class="keywordtype">float</span> currentBest = 0;</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;        <span class="keywordtype">float</span> beliefQuality;</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;        <a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence.html">Sentence</a> candidate = null;</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;        <span class="keywordflow">for</span> (<a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence.html">Sentence</a> judg : list) {</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;            beliefQuality = <a class="code" href="../../d4/de9/classnars_1_1inference_1_1LocalRules.html">LocalRules</a>.<a class="code" href="../../d4/de9/classnars_1_1inference_1_1LocalRules_a91eadfda9f647cd8e799b4f982e14fca.html#a91eadfda9f647cd8e799b4f982e14fca">solutionQuality</a>(query, judg);</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;            <span class="keywordflow">if</span> (beliefQuality &gt; currentBest) {</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;                currentBest = beliefQuality;</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;                candidate = judg;</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;            }</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;        }</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;        <span class="keywordflow">return</span> candidate;</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;    }</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;    <span class="comment">/* ---------- insert Links for indirect processing ---------- */</span></div>
<div class="line"><a name="l00269"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_aef21f5ae7bef5194bd37ae526302843d.html#aef21f5ae7bef5194bd37ae526302843d">  269</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_aef21f5ae7bef5194bd37ae526302843d.html#aef21f5ae7bef5194bd37ae526302843d">insertTaskLink</a>(<a class="code" href="../../d9/d27/classnars_1_1entity_1_1TaskLink.html">TaskLink</a> taskLink) {</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;        <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue.html">BudgetValue</a> taskBudget = taskLink.<a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_a54fc0a370b847dd77c0a698c765e6e55.html#a54fc0a370b847dd77c0a698c765e6e55">getBudget</a>();</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;        taskLinks.<a class="code" href="../../d9/d37/classnars_1_1storage_1_1Bag_a9d42fa45681a07796750a350e08d095b.html#a9d42fa45681a07796750a350e08d095b">putIn</a>(taskLink);</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;        memory.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a765f58846c419efbd2d9f1a0dd9f4c4d.html#a765f58846c419efbd2d9f1a0dd9f4c4d">activateConcept</a>(<span class="keyword">this</span>, taskBudget);</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;    }</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;</div>
<div class="line"><a name="l00281"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_a3f3f026223e459e041fbdd8c0f49f7c6.html#a3f3f026223e459e041fbdd8c0f49f7c6">  281</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a3f3f026223e459e041fbdd8c0f49f7c6.html#a3f3f026223e459e041fbdd8c0f49f7c6">buildTermLinks</a>(BudgetStruct taskBudget) {</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;        <a class="code" href="../../d8/db8/classnars_1_1language_1_1Term.html">Term</a> t;</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;        <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept.html">Concept</a> concept;</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;        <a class="code" href="../../d4/d8b/classnars_1_1entity_1_1TermLink.html">TermLink</a> termLink1, termLink2;</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;        <span class="keywordflow">if</span> (termLinkTemplates.size() &gt; 0) {</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;            <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue.html">BudgetValue</a> subBudget = <a class="code" href="../../d7/d11/classnars_1_1inference_1_1BudgetFunctions.html">BudgetFunctions</a>.<a class="code" href="../../d7/d11/classnars_1_1inference_1_1BudgetFunctions_a9c5299387c81abfc7a7c6fbf72febdc3.html#a9c5299387c81abfc7a7c6fbf72febdc3">distributeAmongLinks</a>(taskBudget, termLinkTemplates.size());</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;            <span class="keywordflow">if</span> (subBudget.<a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ae83b822f3bab4c1831e94d72fc770f58.html#ae83b822f3bab4c1831e94d72fc770f58">aboveThreshold</a>()) {</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;                <span class="keywordflow">for</span> (<a class="code" href="../../d4/d8b/classnars_1_1entity_1_1TermLink.html">TermLink</a> <span class="keyword">template</span> : termLinkTemplates) {</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;                    <span class="keywordflow">if</span> (<span class="keyword">template</span>.getType() != <a class="code" href="../../d4/d8b/classnars_1_1entity_1_1TermLink.html">TermLink</a>.<a class="code" href="../../d4/d8b/classnars_1_1entity_1_1TermLink_a414d310cc5616e19d26525b29c0632d0.html#a414d310cc5616e19d26525b29c0632d0">TRANSFORM</a>) {</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;                        t = <span class="keyword">template</span>.getTarget();</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;                        concept = memory.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a3f45cdc40973611106276cfbc27a7a7a.html#a3f45cdc40973611106276cfbc27a7a7a">getConcept</a>(t);</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;                        <span class="keywordflow">if</span> (concept != null) {</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;                            termLink1 = <span class="keyword">new</span> <a class="code" href="../../d4/d8b/classnars_1_1entity_1_1TermLink.html">TermLink</a>(t, <span class="keyword">template</span>, subBudget);</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;                            <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a3c69b71b1987ca4066c9b3d2a7973dd1.html#a3c69b71b1987ca4066c9b3d2a7973dd1">insertTermLink</a>(termLink1);   <span class="comment">// this termLink to that</span></div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;                            termLink2 = <span class="keyword">new</span> <a class="code" href="../../d4/d8b/classnars_1_1entity_1_1TermLink.html">TermLink</a>(term, <span class="keyword">template</span>, subBudget);</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;                            concept.<a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a3c69b71b1987ca4066c9b3d2a7973dd1.html#a3c69b71b1987ca4066c9b3d2a7973dd1">insertTermLink</a>(termLink2);   <span class="comment">// that termLink to this</span></div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;                            <span class="keywordflow">if</span> (t instanceof <a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm.html">CompoundTerm</a>) {</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;                                concept.<a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a3f3f026223e459e041fbdd8c0f49f7c6.html#a3f3f026223e459e041fbdd8c0f49f7c6">buildTermLinks</a>(subBudget);</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;                            }</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;                        }</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;                    }</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;                }</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;            }</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;        }</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;    }</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;</div>
<div class="line"><a name="l00313"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_a3c69b71b1987ca4066c9b3d2a7973dd1.html#a3c69b71b1987ca4066c9b3d2a7973dd1">  313</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a3c69b71b1987ca4066c9b3d2a7973dd1.html#a3c69b71b1987ca4066c9b3d2a7973dd1">insertTermLink</a>(<a class="code" href="../../d4/d8b/classnars_1_1entity_1_1TermLink.html">TermLink</a> termLink) {</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;        termLinks.<a class="code" href="../../d9/d37/classnars_1_1storage_1_1Bag_a9d42fa45681a07796750a350e08d095b.html#a9d42fa45681a07796750a350e08d095b">putIn</a>(termLink);</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;    }</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;    <span class="comment">/* ---------- access local information ---------- */</span></div>
<div class="line"><a name="l00322"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_afcd1217b7680b073fa51f0d0f159dcea.html#afcd1217b7680b073fa51f0d0f159dcea">  322</a></span>&#160;    <span class="keyword">public</span> <a class="code" href="../../d8/db8/classnars_1_1language_1_1Term.html">Term</a> <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_afcd1217b7680b073fa51f0d0f159dcea.html#afcd1217b7680b073fa51f0d0f159dcea">getTerm</a>() {</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a414c1b5d8ad3baa2ecdf65204b68d485.html#a414c1b5d8ad3baa2ecdf65204b68d485">term</a>;</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;    }</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;    @Override</div>
<div class="line"><a name="l00331"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_a0884554b92012100e88cb32d8b24412f.html#a0884554b92012100e88cb32d8b24412f">  331</a></span>&#160;    <span class="keyword">public</span> String <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a0884554b92012100e88cb32d8b24412f.html#a0884554b92012100e88cb32d8b24412f">toString</a>() {  <span class="comment">// called from concept bag</span></div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory.html">Memory</a>.<a class="code" href="../../d4/d88/classnars_1_1storage_1_1Memory_1_1NARSBatch.html">NARSBatch</a>.<a class="code" href="../../d4/d88/classnars_1_1storage_1_1Memory_1_1NARSBatch_a7e7f64ef4334dd4c3c757937f906ca70.html#a7e7f64ef4334dd4c3c757937f906ca70">isStandAlone</a>()) {</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;            <span class="keywordflow">return</span> (super.toStringBrief() + <span class="stringliteral">&quot; &quot;</span> + <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_a1487af4a10f874c370c913d9ef784600.html#a1487af4a10f874c370c913d9ef784600">key</a>);</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_a1487af4a10f874c370c913d9ef784600.html#a1487af4a10f874c370c913d9ef784600">key</a>;</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;        }</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;    }</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;</div>
<div class="line"><a name="l00340"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_a121514592016f7350b5a741db6465798.html#a121514592016f7350b5a741db6465798">  340</a></span>&#160;    <span class="keyword">public</span> String <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a121514592016f7350b5a741db6465798.html#a121514592016f7350b5a741db6465798">toStringLong</a>() {</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;        String res = <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_a7c18bbc91147504a285041d636284acd.html#a7c18bbc91147504a285041d636284acd">toStringBrief</a>() + <span class="stringliteral">&quot; &quot;</span> + <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_a1487af4a10f874c370c913d9ef784600.html#a1487af4a10f874c370c913d9ef784600">key</a></div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;                + <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a06378e75b0874a8ef80a7f1ac6cdebcd.html#a06378e75b0874a8ef80a7f1ac6cdebcd">toStringIfNotNull</a>(termLinks, <span class="stringliteral">&quot;termLinks&quot;</span>)</div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;                + <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a06378e75b0874a8ef80a7f1ac6cdebcd.html#a06378e75b0874a8ef80a7f1ac6cdebcd">toStringIfNotNull</a>(taskLinks, <span class="stringliteral">&quot;taskLinks&quot;</span>)</div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;        ;</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;        res += <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a06378e75b0874a8ef80a7f1ac6cdebcd.html#a06378e75b0874a8ef80a7f1ac6cdebcd">toStringIfNotNull</a>( null, <span class="stringliteral">&quot;questions&quot;</span> );</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;        <span class="keywordflow">for</span> (<a class="code" href="../../dc/ddc/classnars_1_1entity_1_1Task.html">Task</a> t : questions) {</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;            res += t.toString();</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;        }</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;        <span class="comment">// TODO other details?</span></div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;        <span class="keywordflow">return</span> res;</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;    }</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;</div>
<div class="line"><a name="l00353"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_a06378e75b0874a8ef80a7f1ac6cdebcd.html#a06378e75b0874a8ef80a7f1ac6cdebcd">  353</a></span>&#160;    <span class="keyword">private</span> String <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a06378e75b0874a8ef80a7f1ac6cdebcd.html#a06378e75b0874a8ef80a7f1ac6cdebcd">toStringIfNotNull</a>(Object item, String title) {</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;        <span class="keywordflow">return</span> item == null ? <span class="stringliteral">&quot;&quot;</span> : <span class="stringliteral">&quot;\n &quot;</span> + title + <span class="stringliteral">&quot;:&quot;</span> + item.toString();</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;    }</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;    </div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;    @Override</div>
<div class="line"><a name="l00362"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_acf3c7af84e64586a6b1d549f02bfeead.html#acf3c7af84e64586a6b1d549f02bfeead">  362</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">float</span> <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_acf3c7af84e64586a6b1d549f02bfeead.html#acf3c7af84e64586a6b1d549f02bfeead">getQuality</a>() {</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;        <span class="keywordtype">float</span> linkPriority = termLinks.<a class="code" href="../../d9/d37/classnars_1_1storage_1_1Bag_a5ff587f448a7a832732b4d86eb9a7642.html#a5ff587f448a7a832732b4d86eb9a7642">averagePriority</a>();</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;        <span class="keywordtype">float</span> termComplexityFactor = 1.0f / term.<a class="code" href="../../d8/db8/classnars_1_1language_1_1Term_ae14632d1d25bcde8d6698ea0b58eb19a.html#ae14632d1d25bcde8d6698ea0b58eb19a">getComplexity</a>();</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../d4/de4/classnars_1_1inference_1_1UtilityFunctions.html">UtilityFunctions</a>.<a class="code" href="../../d4/de4/classnars_1_1inference_1_1UtilityFunctions_a24093a77b49f21322e62c9bed7ff5ee2.html#a24093a77b49f21322e62c9bed7ff5ee2">or</a>(linkPriority, termComplexityFactor);</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;    }</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;</div>
<div class="line"><a name="l00372"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_a5ac3ce21f44f9b844a2c1df0dc1488ab.html#a5ac3ce21f44f9b844a2c1df0dc1488ab">  372</a></span>&#160;    <span class="keyword">public</span> ArrayList&lt;TermLink&gt; <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a5ac3ce21f44f9b844a2c1df0dc1488ab.html#a5ac3ce21f44f9b844a2c1df0dc1488ab">getTermLinkTemplates</a>() {</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a201858931ec115680ef147dc4819d92b.html#a201858931ec115680ef147dc4819d92b">termLinkTemplates</a>;</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;    }</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;</div>
<div class="line"><a name="l00385"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_a37e00599fc19c5931da40bd446890f89.html#a37e00599fc19c5931da40bd446890f89">  385</a></span>&#160;    <span class="keyword">public</span> <a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence.html">Sentence</a> <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a37e00599fc19c5931da40bd446890f89.html#a37e00599fc19c5931da40bd446890f89">getBelief</a>(<a class="code" href="../../dc/ddc/classnars_1_1entity_1_1Task.html">Task</a> task) {</div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;        <a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence.html">Sentence</a> taskSentence = task.<a class="code" href="../../dc/ddc/classnars_1_1entity_1_1Task_ab140cb553a6cf40b07093d1df283567f.html#ab140cb553a6cf40b07093d1df283567f">getSentence</a>();</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;        <a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence.html">Sentence</a> belief;</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; beliefs.size(); i++) {</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;            belief = beliefs.get(i);</div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;            memory.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_aa4c7e1f5823d0404c0cab49b617968f1.html#aa4c7e1f5823d0404c0cab49b617968f1">getRecorder</a>().append(<span class="stringliteral">&quot; * Selected Belief: &quot;</span> + belief + <span class="stringliteral">&quot;\n&quot;</span>);</div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;            memory.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_aa8d87fbd9fbd6229e88184fd23553778.html#aa8d87fbd9fbd6229e88184fd23553778">setNewStamp</a>(<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp.html">Stamp</a>.<a class="code" href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a47f0e631d97f15a4b6520847c2c4d62a.html#a47f0e631d97f15a4b6520847c2c4d62a">make</a>(taskSentence.<a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence_ac0ed749c50e55120d5b63219ed7eb082.html#ac0ed749c50e55120d5b63219ed7eb082">getStamp</a>(), belief.<a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence_ac0ed749c50e55120d5b63219ed7eb082.html#ac0ed749c50e55120d5b63219ed7eb082">getStamp</a>(), memory.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_aaa97540563b646b33db1263fa3a97d53.html#aaa97540563b646b33db1263fa3a97d53">getTime</a>()));</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;            <span class="keywordflow">if</span> (memory.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a09af34150e8562d5c93170388c8804b7.html#a09af34150e8562d5c93170388c8804b7">getNewStamp</a>() != null) {</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;                <a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence.html">Sentence</a> belief2 = (<a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence.html">Sentence</a>) belief.<a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence_a721f626ab83f34dc2e6858a4eede7102.html#a721f626ab83f34dc2e6858a4eede7102">clone</a>();   <span class="comment">// will this mess up priority adjustment?</span></div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;                <span class="keywordflow">return</span> belief2;</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;            }</div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;        }</div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;        <span class="keywordflow">return</span> null;</div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;    }</div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;</div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;    <span class="comment">/* ---------- main loop ---------- */</span></div>
<div class="line"><a name="l00404"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_ae07576c8466ad65eeb61040e3f71cfc7.html#ae07576c8466ad65eeb61040e3f71cfc7">  404</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_ae07576c8466ad65eeb61040e3f71cfc7.html#ae07576c8466ad65eeb61040e3f71cfc7">fire</a>() {</div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;        <a class="code" href="../../d9/d27/classnars_1_1entity_1_1TaskLink.html">TaskLink</a> currentTaskLink = taskLinks.<a class="code" href="../../d9/d37/classnars_1_1storage_1_1Bag_a775c0537431b865015facac73e698891.html#a775c0537431b865015facac73e698891">takeOut</a>();</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;        <span class="keywordflow">if</span> (currentTaskLink == null) {</div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;            <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;        }</div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;        memory.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a1ececefca4f7e49be44e1d668c83d359.html#a1ececefca4f7e49be44e1d668c83d359">setCurrentTaskLink</a>(currentTaskLink);</div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;        memory.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a9bba24c2bbb3d9f36c0528a2760e8647.html#a9bba24c2bbb3d9f36c0528a2760e8647">setCurrentBeliefLink</a>(null);</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;        memory.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_aa4c7e1f5823d0404c0cab49b617968f1.html#aa4c7e1f5823d0404c0cab49b617968f1">getRecorder</a>().append(<span class="stringliteral">&quot; * Selected TaskLink: &quot;</span> + currentTaskLink + <span class="stringliteral">&quot;\n&quot;</span>);</div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;        <a class="code" href="../../dc/ddc/classnars_1_1entity_1_1Task.html">Task</a> task = currentTaskLink.<a class="code" href="../../d9/d27/classnars_1_1entity_1_1TaskLink_a60ac6941518e78c1f0049b90437b9053.html#a60ac6941518e78c1f0049b90437b9053">getTargetTask</a>();</div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;        memory.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a5daaf2cedc2672912d0727173eb2d935.html#a5daaf2cedc2672912d0727173eb2d935">setCurrentTask</a>(task);  <span class="comment">// one of the two places where this variable is set</span></div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;        <span class="keywordflow">if</span> (currentTaskLink.<a class="code" href="../../d4/d8b/classnars_1_1entity_1_1TermLink_a795ea0b57cd6467bbe2a8f68a34cba02.html#a795ea0b57cd6467bbe2a8f68a34cba02">getType</a>() == <a class="code" href="../../d4/d8b/classnars_1_1entity_1_1TermLink.html">TermLink</a>.<a class="code" href="../../d4/d8b/classnars_1_1entity_1_1TermLink_a414d310cc5616e19d26525b29c0632d0.html#a414d310cc5616e19d26525b29c0632d0">TRANSFORM</a>) {</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;            <a class="code" href="../../da/de3/classnars_1_1inference_1_1RuleTables.html">RuleTables</a>.<a class="code" href="../../da/de3/classnars_1_1inference_1_1RuleTables_a61c932b424464483bd80c783294ab446.html#a61c932b424464483bd80c783294ab446">transformTask</a>(currentTaskLink, memory);  <span class="comment">// to turn this into structural inference as below?</span></div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;        }</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;        <span class="keywordtype">int</span> termLinkCount = <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory.html">Memory</a>.<a class="code" href="../../da/d3b/classnars_1_1storage_1_1Memory_1_1Parameters.html">Parameters</a>.<a class="code" href="../../da/d3b/classnars_1_1storage_1_1Memory_1_1Parameters_a73b48af1550865dbcc0f15c4f0ad891f.html#a73b48af1550865dbcc0f15c4f0ad891f">MAX_REASONED_TERM_LINK</a>;</div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;        <span class="keywordflow">while</span> (memory.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a871fc44819f07232afb4573ad704dee0.html#a871fc44819f07232afb4573ad704dee0">noResult</a>() &amp;&amp; (termLinkCount &gt; 0)) {</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;            <a class="code" href="../../d4/d8b/classnars_1_1entity_1_1TermLink.html">TermLink</a> termLink = termLinks.<a class="code" href="../../de/d86/classnars_1_1storage_1_1TermLinkBag_a2f98120a5db1a3c065d3dc5712562d71.html#a2f98120a5db1a3c065d3dc5712562d71">takeOut</a>(currentTaskLink, memory.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_aaa97540563b646b33db1263fa3a97d53.html#aaa97540563b646b33db1263fa3a97d53">getTime</a>());</div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;            <span class="keywordflow">if</span> (termLink != null) {</div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;                memory.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_aa4c7e1f5823d0404c0cab49b617968f1.html#aa4c7e1f5823d0404c0cab49b617968f1">getRecorder</a>().append(<span class="stringliteral">&quot; * Selected TermLink: &quot;</span> + termLink + <span class="stringliteral">&quot;\n&quot;</span>);</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;                memory.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a9bba24c2bbb3d9f36c0528a2760e8647.html#a9bba24c2bbb3d9f36c0528a2760e8647">setCurrentBeliefLink</a>(termLink);</div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;                <a class="code" href="../../da/de3/classnars_1_1inference_1_1RuleTables.html">RuleTables</a>.<a class="code" href="../../da/de3/classnars_1_1inference_1_1RuleTables_ac2d01dfdc40bdd47c757cb549217e6e3.html#ac2d01dfdc40bdd47c757cb549217e6e3">reason</a>(currentTaskLink, termLink, memory);</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;                termLinks.<a class="code" href="../../d9/d37/classnars_1_1storage_1_1Bag_a64b0b75c54e6882a28702d7810094656.html#a64b0b75c54e6882a28702d7810094656">putBack</a>(termLink);</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;                termLinkCount--;</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;                termLinkCount = 0;</div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;            }</div>
<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;        }</div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;        taskLinks.<a class="code" href="../../d9/d37/classnars_1_1storage_1_1Bag_a64b0b75c54e6882a28702d7810094656.html#a64b0b75c54e6882a28702d7810094656">putBack</a>(currentTaskLink);</div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;    }</div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;</div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;    <span class="comment">/* ---------- display ---------- */</span></div>
<div class="line"><a name="l00443"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_a5a010290c8c42603dd13387f415abf43.html#a5a010290c8c42603dd13387f415abf43">  443</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a5a010290c8c42603dd13387f415abf43.html#a5a010290c8c42603dd13387f415abf43">startPlay</a>(<a class="code" href="../../d4/d96/interfacenars_1_1entity_1_1EntityObserver.html">EntityObserver</a> entityObserver, <span class="keywordtype">boolean</span> showLinks) {</div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;        this.entityObserver = <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_adc7e06bbf7571dbe4df1de8d70fd89b9.html#adc7e06bbf7571dbe4df1de8d70fd89b9">entityObserver</a>;</div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;        entityObserver.<a class="code" href="../../d4/d96/interfacenars_1_1entity_1_1EntityObserver_aef3ebd18d9e7d210d5c46e49e749142a.html#aef3ebd18d9e7d210d5c46e49e749142a">startPlay</a>(<span class="keyword">this</span>, showLinks);</div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;        entityObserver.<a class="code" href="../../d4/d96/interfacenars_1_1entity_1_1EntityObserver_ac62aeea4d8b2ba99f935a2380b8e9407.html#ac62aeea4d8b2ba99f935a2380b8e9407">post</a>(<a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a2b2088a51d2519fe76c791b6c6945409.html#a2b2088a51d2519fe76c791b6c6945409">displayContent</a>());</div>
<div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;        <span class="keywordflow">if</span> (showLinks) {</div>
<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;            taskLinks.<a class="code" href="../../d9/d37/classnars_1_1storage_1_1Bag_a73a559e1b77e6bc3a7db686816accef2.html#a73a559e1b77e6bc3a7db686816accef2">addBagObserver</a>(entityObserver.<a class="code" href="../../d4/d96/interfacenars_1_1entity_1_1EntityObserver_a58888a42bc7ce9a40165517c8ca81667.html#a58888a42bc7ce9a40165517c8ca81667">createBagObserver</a>(), <span class="stringliteral">&quot;Task Links in &quot;</span> + <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a414c1b5d8ad3baa2ecdf65204b68d485.html#a414c1b5d8ad3baa2ecdf65204b68d485">term</a>);</div>
<div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;            termLinks.<a class="code" href="../../d9/d37/classnars_1_1storage_1_1Bag_a73a559e1b77e6bc3a7db686816accef2.html#a73a559e1b77e6bc3a7db686816accef2">addBagObserver</a>(entityObserver.<a class="code" href="../../d4/d96/interfacenars_1_1entity_1_1EntityObserver_a58888a42bc7ce9a40165517c8ca81667.html#a58888a42bc7ce9a40165517c8ca81667">createBagObserver</a>(), <span class="stringliteral">&quot;Term Links in &quot;</span> + <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a414c1b5d8ad3baa2ecdf65204b68d485.html#a414c1b5d8ad3baa2ecdf65204b68d485">term</a>);</div>
<div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;        }</div>
<div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;    }</div>
<div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;</div>
<div class="line"><a name="l00456"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_add08a37b7cf7b272838532c942c083a4.html#add08a37b7cf7b272838532c942c083a4">  456</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_add08a37b7cf7b272838532c942c083a4.html#add08a37b7cf7b272838532c942c083a4">play</a>() {</div>
<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;        entityObserver.<a class="code" href="../../d4/d96/interfacenars_1_1entity_1_1EntityObserver_ac62aeea4d8b2ba99f935a2380b8e9407.html#ac62aeea4d8b2ba99f935a2380b8e9407">post</a>(<a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a2b2088a51d2519fe76c791b6c6945409.html#a2b2088a51d2519fe76c791b6c6945409">displayContent</a>());</div>
<div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;    }</div>
<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;</div>
<div class="line"><a name="l00463"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_a0c635b89db49fbe38d04e3c3088b5d15.html#a0c635b89db49fbe38d04e3c3088b5d15">  463</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a0c635b89db49fbe38d04e3c3088b5d15.html#a0c635b89db49fbe38d04e3c3088b5d15">stop</a>() {</div>
<div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;        entityObserver.<a class="code" href="../../d4/d96/interfacenars_1_1entity_1_1EntityObserver_a13aa9d16572c3d3bdc682b99e06d2698.html#a13aa9d16572c3d3bdc682b99e06d2698">stop</a>();</div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;    }</div>
<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;</div>
<div class="line"><a name="l00471"></a><span class="lineno"><a class="line" href="../../d4/d22/classnars_1_1entity_1_1Concept_a2b2088a51d2519fe76c791b6c6945409.html#a2b2088a51d2519fe76c791b6c6945409">  471</a></span>&#160;    <span class="keyword">public</span> String <a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a2b2088a51d2519fe76c791b6c6945409.html#a2b2088a51d2519fe76c791b6c6945409">displayContent</a>() {</div>
<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;        StringBuilder buffer = <span class="keyword">new</span> StringBuilder();</div>
<div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;        <span class="keywordflow">if</span> (beliefs.size() &gt; 0) {</div>
<div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;            buffer.append(<span class="stringliteral">&quot;\n  Beliefs:\n&quot;</span>);</div>
<div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;            <span class="keywordflow">for</span> (<a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence.html">Sentence</a> s : beliefs) {</div>
<div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;                buffer.append(s).append(<span class="stringliteral">&quot;\n&quot;</span>);</div>
<div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;            }</div>
<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;        }</div>
<div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;        <span class="keywordflow">if</span> (questions.size() &gt; 0) {</div>
<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;            buffer.append(<span class="stringliteral">&quot;\n  Question:\n&quot;</span>);</div>
<div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;            <span class="keywordflow">for</span> (<a class="code" href="../../dc/ddc/classnars_1_1entity_1_1Task.html">Task</a> t : questions) {</div>
<div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;                buffer.append(t).append(<span class="stringliteral">&quot;\n&quot;</span>);</div>
<div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;            }</div>
<div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;        }</div>
<div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;        <span class="keywordflow">return</span> buffer.toString();</div>
<div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;    }</div>
<div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;    </div>
<div class="line"><a name="l00488"></a><span class="lineno"><a class="line" href="../../d5/dbd/classnars_1_1entity_1_1Concept_1_1NullEntityObserver.html">  488</a></span>&#160;    <span class="keyword">class </span><a class="code" href="../../d5/dbd/classnars_1_1entity_1_1Concept_1_1NullEntityObserver.html">NullEntityObserver</a> <span class="keyword">implements</span> <a class="code" href="../../d4/d96/interfacenars_1_1entity_1_1EntityObserver.html">EntityObserver</a> {</div>
<div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160;        @Override</div>
<div class="line"><a name="l00490"></a><span class="lineno"><a class="line" href="../../d5/dbd/classnars_1_1entity_1_1Concept_1_1NullEntityObserver_ac44675aff5be9d0fa637ca24b01d2b85.html#ac44675aff5be9d0fa637ca24b01d2b85">  490</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../d5/dbd/classnars_1_1entity_1_1Concept_1_1NullEntityObserver_ac44675aff5be9d0fa637ca24b01d2b85.html#ac44675aff5be9d0fa637ca24b01d2b85">post</a>(String str) {}</div>
<div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;        @SuppressWarnings(<span class="stringliteral">&quot;rawtypes&quot;</span>)</div>
<div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;        @Override</div>
<div class="line"><a name="l00493"></a><span class="lineno"><a class="line" href="../../d5/dbd/classnars_1_1entity_1_1Concept_1_1NullEntityObserver_abac1e4ef70dabe578c80be1470b5a2fc.html#abac1e4ef70dabe578c80be1470b5a2fc">  493</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="../../df/d32/interfacenars_1_1storage_1_1BagObserver.html">BagObserver</a> <a class="code" href="../../d5/dbd/classnars_1_1entity_1_1Concept_1_1NullEntityObserver_abac1e4ef70dabe578c80be1470b5a2fc.html#abac1e4ef70dabe578c80be1470b5a2fc">createBagObserver</a>() {</div>
<div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="../../d4/d76/classnars_1_1storage_1_1NullBagObserver.html">NullBagObserver</a>();</div>
<div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;        }</div>
<div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;        @Override</div>
<div class="line"><a name="l00497"></a><span class="lineno"><a class="line" href="../../d5/dbd/classnars_1_1entity_1_1Concept_1_1NullEntityObserver_a1cdca96b34fa590c63bd15460535fb47.html#a1cdca96b34fa590c63bd15460535fb47">  497</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../d5/dbd/classnars_1_1entity_1_1Concept_1_1NullEntityObserver_a1cdca96b34fa590c63bd15460535fb47.html#a1cdca96b34fa590c63bd15460535fb47">startPlay</a>(<a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept.html">Concept</a> concept, <span class="keywordtype">boolean</span> showLinks) {}</div>
<div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;        @Override</div>
<div class="line"><a name="l00499"></a><span class="lineno"><a class="line" href="../../d5/dbd/classnars_1_1entity_1_1Concept_1_1NullEntityObserver_a62346ca0add7b475c8167e3dcd1d9e8a.html#a62346ca0add7b475c8167e3dcd1d9e8a">  499</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../d5/dbd/classnars_1_1entity_1_1Concept_1_1NullEntityObserver_a62346ca0add7b475c8167e3dcd1d9e8a.html#a62346ca0add7b475c8167e3dcd1d9e8a">stop</a>() {}</div>
<div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;        @Override</div>
<div class="line"><a name="l00501"></a><span class="lineno"><a class="line" href="../../d5/dbd/classnars_1_1entity_1_1Concept_1_1NullEntityObserver_aaf10d6ba8cc6f19cda30a984307e1fce.html#aaf10d6ba8cc6f19cda30a984307e1fce">  501</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../d5/dbd/classnars_1_1entity_1_1Concept_1_1NullEntityObserver_aaf10d6ba8cc6f19cda30a984307e1fce.html#aaf10d6ba8cc6f19cda30a984307e1fce">refresh</a>(String message) {}      </div>
<div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;    }</div>
<div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;}</div>
<div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160;</div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_a8b68e5eb605ffd96cf53c86b5368caa2_html_a8b68e5eb605ffd96cf53c86b5368caa2"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_a8b68e5eb605ffd96cf53c86b5368caa2.html#a8b68e5eb605ffd96cf53c86b5368caa2">nars.entity.Concept.beliefs</a></div><div class="ttdeci">ArrayList&lt; Sentence &gt; beliefs</div><div class="ttdoc">Sentences directly made about the term, with non-future tense. </div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00061">Concept.java:61</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Item_a54fc0a370b847dd77c0a698c765e6e55_html_a54fc0a370b847dd77c0a698c765e6e55"><div class="ttname"><a href="../../d1/dd1/classnars_1_1entity_1_1Item_a54fc0a370b847dd77c0a698c765e6e55.html#a54fc0a370b847dd77c0a698c765e6e55">nars.entity.Item.getBudget</a></div><div class="ttdeci">BudgetValue getBudget()</div><div class="ttdoc">Get BudgetValue. </div><div class="ttdef"><b>Definition:</b> <a href="../../d9/de0/Item_8java_source.html#l00082">Item.java:82</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Sentence_a9f69b4fef64c81abad21404946cd41f9_html_a9f69b4fef64c81abad21404946cd41f9"><div class="ttname"><a href="../../d6/d25/classnars_1_1entity_1_1Sentence_a9f69b4fef64c81abad21404946cd41f9.html#a9f69b4fef64c81abad21404946cd41f9">nars.entity.Sentence.getTruth</a></div><div class="ttdeci">TruthValue getTruth()</div><div class="ttdoc">Get the truth value of the sentence. </div><div class="ttdef"><b>Definition:</b> <a href="../../da/d1c/Sentence_8java_source.html#l00165">Sentence.java:165</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Term_a3aad4654016b8615fd4fa8a26668e1db_html_a3aad4654016b8615fd4fa8a26668e1db"><div class="ttname"><a href="../../d8/db8/classnars_1_1language_1_1Term_a3aad4654016b8615fd4fa8a26668e1db.html#a3aad4654016b8615fd4fa8a26668e1db">nars.language.Term.getName</a></div><div class="ttdeci">String getName()</div><div class="ttdoc">Reporting the name of the current Term. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/df2/Term_8java_source.html#l00068">Term.java:68</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_aba5d1c9254d00f04de039f73bef26243_html_aba5d1c9254d00f04de039f73bef26243"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_aba5d1c9254d00f04de039f73bef26243.html#aba5d1c9254d00f04de039f73bef26243">nars.entity.Concept.taskLinks</a></div><div class="ttdeci">TaskLinkBag taskLinks</div><div class="ttdoc">Task links for indirect processing. </div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00052">Concept.java:52</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_a3f3f026223e459e041fbdd8c0f49f7c6_html_a3f3f026223e459e041fbdd8c0f49f7c6"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_a3f3f026223e459e041fbdd8c0f49f7c6.html#a3f3f026223e459e041fbdd8c0f49f7c6">nars.entity.Concept.buildTermLinks</a></div><div class="ttdeci">void buildTermLinks(BudgetStruct taskBudget)</div><div class="ttdoc">Recursively build TermLinks between a compound and its components. </div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00281">Concept.java:281</a></div></div>
<div class="ttc" id="classnars_1_1inference_1_1LocalRules_a40edb0903d098da966e3ef972e5c8abd_html_a40edb0903d098da966e3ef972e5c8abd"><div class="ttname"><a href="../../d4/de9/classnars_1_1inference_1_1LocalRules_a40edb0903d098da966e3ef972e5c8abd.html#a40edb0903d098da966e3ef972e5c8abd">nars.inference.LocalRules.revision</a></div><div class="ttdeci">static void revision(Sentence newBelief, Sentence oldBelief, boolean feedbackToLinks, Memory memory)</div><div class="ttdoc">Belief revision. </div><div class="ttdef"><b>Definition:</b> <a href="../../d0/db7/LocalRules_8java_source.html#l00093">LocalRules.java:93</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_a121514592016f7350b5a741db6465798_html_a121514592016f7350b5a741db6465798"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_a121514592016f7350b5a741db6465798.html#a121514592016f7350b5a741db6465798">nars.entity.Concept.toStringLong</a></div><div class="ttdeci">String toStringLong()</div><div class="ttdoc">called from Memory.NARSBatch </div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00340">Concept.java:340</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_ada871bb544e0669e0497e888b68d38d5_html_ada871bb544e0669e0497e888b68d38d5"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_ada871bb544e0669e0497e888b68d38d5.html#ada871bb544e0669e0497e888b68d38d5">nars.entity.Concept.termLinks</a></div><div class="ttdeci">TermLinkBag termLinks</div><div class="ttdoc">Term links between the term and its components and compounds. </div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00054">Concept.java:54</a></div></div>
<div class="ttc" id="interfacenars_1_1entity_1_1EntityObserver_a58888a42bc7ce9a40165517c8ca81667_html_a58888a42bc7ce9a40165517c8ca81667"><div class="ttname"><a href="../../d4/d96/interfacenars_1_1entity_1_1EntityObserver_a58888a42bc7ce9a40165517c8ca81667.html#a58888a42bc7ce9a40165517c8ca81667">nars.entity.EntityObserver.createBagObserver</a></div><div class="ttdeci">abstract BagObserver createBagObserver()</div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_a1ececefca4f7e49be44e1d668c83d359_html_a1ececefca4f7e49be44e1d668c83d359"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_a1ececefca4f7e49be44e1d668c83d359.html#a1ececefca4f7e49be44e1d668c83d359">nars.storage.Memory.setCurrentTaskLink</a></div><div class="ttdeci">void setCurrentTaskLink(TaskLink currentTaskLink)</div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00618">Memory.java:618</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_a3900248991e7adb57e82231312337f8f_html_a3900248991e7adb57e82231312337f8f"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_a3900248991e7adb57e82231312337f8f.html#a3900248991e7adb57e82231312337f8f">nars.entity.Concept.processQuestion</a></div><div class="ttdeci">float processQuestion(Task task)</div><div class="ttdoc">To answer a question by existing beliefs. </div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00144">Concept.java:144</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Bag_a775c0537431b865015facac73e698891_html_a775c0537431b865015facac73e698891"><div class="ttname"><a href="../../d9/d37/classnars_1_1storage_1_1Bag_a775c0537431b865015facac73e698891.html#a775c0537431b865015facac73e698891">nars.storage.Bag.takeOut</a></div><div class="ttdeci">Type takeOut()</div><div class="ttdoc">Choose an Item according to priority distribution and take it out of the Bag. </div><div class="ttdef"><b>Definition:</b> <a href="../../d6/dce/Bag_8java_source.html#l00187">Bag.java:187</a></div></div>
<div class="ttc" id="interfacenars_1_1entity_1_1EntityObserver_ac62aeea4d8b2ba99f935a2380b8e9407_html_ac62aeea4d8b2ba99f935a2380b8e9407"><div class="ttname"><a href="../../d4/d96/interfacenars_1_1entity_1_1EntityObserver_ac62aeea4d8b2ba99f935a2380b8e9407.html#ac62aeea4d8b2ba99f935a2380b8e9407">nars.entity.EntityObserver.post</a></div><div class="ttdeci">abstract void post(String str)</div><div class="ttdoc">Display the content of the concept. </div></div>
<div class="ttc" id="classnars_1_1language_1_1Term_ae14632d1d25bcde8d6698ea0b58eb19a_html_ae14632d1d25bcde8d6698ea0b58eb19a"><div class="ttname"><a href="../../d8/db8/classnars_1_1language_1_1Term_ae14632d1d25bcde8d6698ea0b58eb19a.html#ae14632d1d25bcde8d6698ea0b58eb19a">nars.language.Term.getComplexity</a></div><div class="ttdeci">int getComplexity()</div><div class="ttdoc">The syntactic complexity, for constant automic Term, is 1. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/df2/Term_8java_source.html#l00128">Term.java:128</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Sentence_a8fee2d32f0024964146b13d7698210c5_html_a8fee2d32f0024964146b13d7698210c5"><div class="ttname"><a href="../../d6/d25/classnars_1_1entity_1_1Sentence_a8fee2d32f0024964146b13d7698210c5.html#a8fee2d32f0024964146b13d7698210c5">nars.entity.Sentence.equivalentTo</a></div><div class="ttdeci">boolean equivalentTo(Sentence that)</div><div class="ttdoc">Check whether the judgment is equivalent to another one. </div><div class="ttdef"><b>Definition:</b> <a href="../../da/d1c/Sentence_8java_source.html#l00112">Sentence.java:112</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1TermLink_html"><div class="ttname"><a href="../../d4/d8b/classnars_1_1entity_1_1TermLink.html">nars.entity.TermLink</a></div><div class="ttdoc">A link between a compound term and a component term. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/daa/TermLink_8java_source.html#l00038">TermLink.java:38</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Bag_a5ff587f448a7a832732b4d86eb9a7642_html_a5ff587f448a7a832732b4d86eb9a7642"><div class="ttname"><a href="../../d9/d37/classnars_1_1storage_1_1Bag_a5ff587f448a7a832732b4d86eb9a7642.html#a5ff587f448a7a832732b4d86eb9a7642">nars.storage.Bag.averagePriority</a></div><div class="ttdeci">float averagePriority()</div><div class="ttdoc">Get the average priority of Items. </div><div class="ttdef"><b>Definition:</b> <a href="../../d6/dce/Bag_8java_source.html#l00120">Bag.java:120</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Item_html"><div class="ttname"><a href="../../d1/dd1/classnars_1_1entity_1_1Item.html">nars.entity.Item</a></div><div class="ttdoc">An item is an object that can be put into a Bag, to participate in the resource competition of the sy...</div><div class="ttdef"><b>Definition:</b> <a href="../../d9/de0/Item_8java_source.html#l00031">Item.java:31</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_html"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory.html">nars.storage.Memory</a></div><div class="ttdoc">The memory of the system. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00051">Memory.java:51</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_a09af34150e8562d5c93170388c8804b7_html_a09af34150e8562d5c93170388c8804b7"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_a09af34150e8562d5c93170388c8804b7.html#a09af34150e8562d5c93170388c8804b7">nars.storage.Memory.getNewStamp</a></div><div class="ttdeci">Stamp getNewStamp()</div><div class="ttdoc">The new Stamp. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00658">Memory.java:658</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_1_1Parameters_html"><div class="ttname"><a href="../../da/d3b/classnars_1_1storage_1_1Memory_1_1Parameters.html">nars.storage.Memory.Parameters</a></div><div class="ttdoc">Collected system parameters. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l01069">Memory.java:1069</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_ae07576c8466ad65eeb61040e3f71cfc7_html_ae07576c8466ad65eeb61040e3f71cfc7"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_ae07576c8466ad65eeb61040e3f71cfc7.html#ae07576c8466ad65eeb61040e3f71cfc7">nars.entity.Concept.fire</a></div><div class="ttdeci">void fire()</div><div class="ttdoc">An atomic step in a concept, only called in Memory# processConcept. </div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00404">Concept.java:404</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Sentence_ac0ed749c50e55120d5b63219ed7eb082_html_ac0ed749c50e55120d5b63219ed7eb082"><div class="ttname"><a href="../../d6/d25/classnars_1_1entity_1_1Sentence_ac0ed749c50e55120d5b63219ed7eb082.html#ac0ed749c50e55120d5b63219ed7eb082">nars.entity.Sentence.getStamp</a></div><div class="ttdeci">Stamp getStamp()</div><div class="ttdoc">Get the stamp of the sentence. </div><div class="ttdef"><b>Definition:</b> <a href="../../da/d1c/Sentence_8java_source.html#l00173">Sentence.java:173</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_1_1Parameters_a99c4a4dd667b5cf604c0b2be1352c29e_html_a99c4a4dd667b5cf604c0b2be1352c29e"><div class="ttname"><a href="../../da/d3b/classnars_1_1storage_1_1Memory_1_1Parameters_a99c4a4dd667b5cf604c0b2be1352c29e.html#a99c4a4dd667b5cf604c0b2be1352c29e">nars.storage.Memory.Parameters.MAXIMUM_BELIEF_LENGTH</a></div><div class="ttdeci">static final int MAXIMUM_BELIEF_LENGTH</div><div class="ttdoc">Maximum number of beliefs kept in a Concept. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l01141">Memory.java:1141</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Bag_a64b0b75c54e6882a28702d7810094656_html_a64b0b75c54e6882a28702d7810094656"><div class="ttname"><a href="../../d9/d37/classnars_1_1storage_1_1Bag_a64b0b75c54e6882a28702d7810094656.html#a64b0b75c54e6882a28702d7810094656">nars.storage.Bag.putBack</a></div><div class="ttdeci">boolean putBack(Type oldItem)</div><div class="ttdoc">Put an item back into the itemTable. </div><div class="ttdef"><b>Definition:</b> <a href="../../d6/dce/Bag_8java_source.html#l00178">Bag.java:178</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_a2b2088a51d2519fe76c791b6c6945409_html_a2b2088a51d2519fe76c791b6c6945409"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_a2b2088a51d2519fe76c791b6c6945409.html#a2b2088a51d2519fe76c791b6c6945409">nars.entity.Concept.displayContent</a></div><div class="ttdeci">String displayContent()</div><div class="ttdoc">Collect direct isBelief, questions, and goals for display. </div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00471">Concept.java:471</a></div></div>
<div class="ttc" id="classnars_1_1inference_1_1LocalRules_a21cfc2af8051142d084776d0bbc618e6_html_a21cfc2af8051142d084776d0bbc618e6"><div class="ttname"><a href="../../d4/de9/classnars_1_1inference_1_1LocalRules_a21cfc2af8051142d084776d0bbc618e6.html#a21cfc2af8051142d084776d0bbc618e6">nars.inference.LocalRules.revisible</a></div><div class="ttdeci">static boolean revisible(Sentence s1, Sentence s2)</div><div class="ttdoc">Check whether two sentences can be used in revision. </div><div class="ttdef"><b>Definition:</b> <a href="../../d0/db7/LocalRules_8java_source.html#l00075">LocalRules.java:75</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_ae83b822f3bab4c1831e94d72fc770f58_html_ae83b822f3bab4c1831e94d72fc770f58"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ae83b822f3bab4c1831e94d72fc770f58.html#ae83b822f3bab4c1831e94d72fc770f58">nars.entity.BudgetValue.aboveThreshold</a></div><div class="ttdeci">boolean aboveThreshold()</div><div class="ttdoc">Whether the budget should get any processing at all. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00198">BudgetValue.java:198</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Task_html"><div class="ttname"><a href="../../dc/ddc/classnars_1_1entity_1_1Task.html">nars.entity.Task</a></div><div class="ttdoc">A task to be processed, consists of a Sentence and a BudgetValue. </div><div class="ttdef"><b>Definition:</b> <a href="../../d6/d10/Task_8java_source.html#l00035">Task.java:35</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_aa8d87fbd9fbd6229e88184fd23553778_html_aa8d87fbd9fbd6229e88184fd23553778"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_aa8d87fbd9fbd6229e88184fd23553778.html#aa8d87fbd9fbd6229e88184fd23553778">nars.storage.Memory.setNewStamp</a></div><div class="ttdeci">void setNewStamp(Stamp newStamp)</div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00662">Memory.java:662</a></div></div>
<div class="ttc" id="namespacenars_1_1inference_html"><div class="ttname"><a href="../../d9/d79/namespacenars_1_1inference.html">nars.inference</a></div><div class="ttdef"><b>Definition:</b> <a href="../../de/d4e/BudgetFunctions_8java_source.html#l00021">BudgetFunctions.java:21</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Task_ab140cb553a6cf40b07093d1df283567f_html_ab140cb553a6cf40b07093d1df283567f"><div class="ttname"><a href="../../dc/ddc/classnars_1_1entity_1_1Task_ab140cb553a6cf40b07093d1df283567f.html#ab140cb553a6cf40b07093d1df283567f">nars.entity.Task.getSentence</a></div><div class="ttdeci">Sentence getSentence()</div><div class="ttdoc">Get the sentence. </div><div class="ttdef"><b>Definition:</b> <a href="../../d6/d10/Task_8java_source.html#l00099">Task.java:99</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_a2aaa4a9fe0cb1841ba426f323a08b7eb_html_a2aaa4a9fe0cb1841ba426f323a08b7eb"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_a2aaa4a9fe0cb1841ba426f323a08b7eb.html#a2aaa4a9fe0cb1841ba426f323a08b7eb">nars.entity.Concept.Concept</a></div><div class="ttdeci">Concept(Term tm, Memory memory)</div><div class="ttdoc">Constructor, called in Memory.getConcept only. </div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00074">Concept.java:74</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Stamp_a47f0e631d97f15a4b6520847c2c4d62a_html_a47f0e631d97f15a4b6520847c2c4d62a"><div class="ttname"><a href="../../d1/d1e/classnars_1_1entity_1_1Stamp_a47f0e631d97f15a4b6520847c2c4d62a.html#a47f0e631d97f15a4b6520847c2c4d62a">nars.entity.Stamp.make</a></div><div class="ttdeci">static Stamp make(Stamp first, Stamp second, long time)</div><div class="ttdoc">Try to merge two Stamps, return null if have overlap. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4f/Stamp_8java_source.html#l00119">Stamp.java:119</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Sentence_ad1ded9a02cae3557948d05530cd4d37e_html_ad1ded9a02cae3557948d05530cd4d37e"><div class="ttname"><a href="../../d6/d25/classnars_1_1entity_1_1Sentence_ad1ded9a02cae3557948d05530cd4d37e.html#ad1ded9a02cae3557948d05530cd4d37e">nars.entity.Sentence.getContent</a></div><div class="ttdeci">Term getContent()</div><div class="ttdoc">Get the content of the sentence. </div><div class="ttdef"><b>Definition:</b> <a href="../../da/d1c/Sentence_8java_source.html#l00133">Sentence.java:133</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_html"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept.html">nars.entity.Concept</a></div><div class="ttdoc">A concept contains information associated with a term, including directly and indirectly related task...</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00047">Concept.java:47</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Bag_a9d42fa45681a07796750a350e08d095b_html_a9d42fa45681a07796750a350e08d095b"><div class="ttname"><a href="../../d9/d37/classnars_1_1storage_1_1Bag_a9d42fa45681a07796750a350e08d095b.html#a9d42fa45681a07796750a350e08d095b">nars.storage.Bag.putIn</a></div><div class="ttdeci">boolean putIn(Type newItem)</div><div class="ttdoc">Add a new Item into the Bag. </div><div class="ttdef"><b>Definition:</b> <a href="../../d6/dce/Bag_8java_source.html#l00154">Bag.java:154</a></div></div>
<div class="ttc" id="namespacenars_1_1storage_html"><div class="ttname"><a href="../../de/ddc/namespacenars_1_1storage.html">nars.storage</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d6/dce/Bag_8java_source.html#l00021">Bag.java:21</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_a5ac3ce21f44f9b844a2c1df0dc1488ab_html_a5ac3ce21f44f9b844a2c1df0dc1488ab"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_a5ac3ce21f44f9b844a2c1df0dc1488ab.html#a5ac3ce21f44f9b844a2c1df0dc1488ab">nars.entity.Concept.getTermLinkTemplates</a></div><div class="ttdeci">ArrayList&lt; TermLink &gt; getTermLinkTemplates()</div><div class="ttdoc">Return the templates for TermLinks, only called in Memory.continuedProcess. </div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00372">Concept.java:372</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_a871fc44819f07232afb4573ad704dee0_html_a871fc44819f07232afb4573ad704dee0"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_a871fc44819f07232afb4573ad704dee0.html#a871fc44819f07232afb4573ad704dee0">nars.storage.Memory.noResult</a></div><div class="ttdeci">boolean noResult()</div><div class="ttdoc">Actually means that there are no new Tasks. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00129">Memory.java:129</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1TermLink_a414d310cc5616e19d26525b29c0632d0_html_a414d310cc5616e19d26525b29c0632d0"><div class="ttname"><a href="../../d4/d8b/classnars_1_1entity_1_1TermLink_a414d310cc5616e19d26525b29c0632d0.html#a414d310cc5616e19d26525b29c0632d0">nars.entity.TermLink.TRANSFORM</a></div><div class="ttdeci">static final short TRANSFORM</div><div class="ttdoc">At C, point to <(*, C, B) –> A>; TaskLink only. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/daa/TermLink_8java_source.html#l00054">TermLink.java:54</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_a5daaf2cedc2672912d0727173eb2d935_html_a5daaf2cedc2672912d0727173eb2d935"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_a5daaf2cedc2672912d0727173eb2d935.html#a5daaf2cedc2672912d0727173eb2d935">nars.storage.Memory.setCurrentTask</a></div><div class="ttdeci">void setCurrentTask(Task currentTask)</div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00629">Memory.java:629</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_a3482da9df329962e73213118fbaef131_html_a3482da9df329962e73213118fbaef131"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_a3482da9df329962e73213118fbaef131.html#a3482da9df329962e73213118fbaef131">nars.storage.Memory.setCurrentBelief</a></div><div class="ttdeci">void setCurrentBelief(Sentence currentBelief)</div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00651">Memory.java:651</a></div></div>
<div class="ttc" id="classnars_1_1inference_1_1LocalRules_a3ecf859c238ad7f0c44c45e3e5df0081_html_a3ecf859c238ad7f0c44c45e3e5df0081"><div class="ttname"><a href="../../d4/de9/classnars_1_1inference_1_1LocalRules_a3ecf859c238ad7f0c44c45e3e5df0081.html#a3ecf859c238ad7f0c44c45e3e5df0081">nars.inference.LocalRules.trySolution</a></div><div class="ttdeci">static void trySolution(Sentence belief, Task task, Memory memory)</div><div class="ttdoc">Check if a Sentence provide a better answer to a Question or Goal. </div><div class="ttdef"><b>Definition:</b> <a href="../../d0/db7/LocalRules_8java_source.html#l00118">LocalRules.java:118</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_1_1NullEntityObserver_ac44675aff5be9d0fa637ca24b01d2b85_html_ac44675aff5be9d0fa637ca24b01d2b85"><div class="ttname"><a href="../../d5/dbd/classnars_1_1entity_1_1Concept_1_1NullEntityObserver_ac44675aff5be9d0fa637ca24b01d2b85.html#ac44675aff5be9d0fa637ca24b01d2b85">nars.entity.Concept.NullEntityObserver.post</a></div><div class="ttdeci">void post(String str)</div><div class="ttdoc">Display the content of the concept. </div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00490">Concept.java:490</a></div></div>
<div class="ttc" id="classnars_1_1inference_1_1LocalRules_html"><div class="ttname"><a href="../../d4/de9/classnars_1_1inference_1_1LocalRules.html">nars.inference.LocalRules</a></div><div class="ttdoc">Directly process a task by a oldBelief, with only two Terms in both. </div><div class="ttdef"><b>Definition:</b> <a href="../../d0/db7/LocalRules_8java_source.html#l00038">LocalRules.java:38</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_a414c1b5d8ad3baa2ecdf65204b68d485_html_a414c1b5d8ad3baa2ecdf65204b68d485"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_a414c1b5d8ad3baa2ecdf65204b68d485.html#a414c1b5d8ad3baa2ecdf65204b68d485">nars.entity.Concept.term</a></div><div class="ttdeci">Term term</div><div class="ttdoc">The term is the unique ID of the concept. </div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00050">Concept.java:50</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1TruthValue_aa5ffcde3ae611b087ba7fdd4cd67b216_html_aa5ffcde3ae611b087ba7fdd4cd67b216"><div class="ttname"><a href="../../d3/db8/classnars_1_1entity_1_1TruthValue_aa5ffcde3ae611b087ba7fdd4cd67b216.html#aa5ffcde3ae611b087ba7fdd4cd67b216">nars.entity.TruthValue.getExpectation</a></div><div class="ttdeci">float getExpectation()</div><div class="ttdoc">Calculate the expectation value of the truth value. </div><div class="ttdef"><b>Definition:</b> <a href="../../de/de7/TruthValue_8java_source.html#l00077">TruthValue.java:77</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Item_a1487af4a10f874c370c913d9ef784600_html_a1487af4a10f874c370c913d9ef784600"><div class="ttname"><a href="../../d1/dd1/classnars_1_1entity_1_1Item_a1487af4a10f874c370c913d9ef784600.html#a1487af4a10f874c370c913d9ef784600">nars.entity.Item.key</a></div><div class="ttdeci">String key</div><div class="ttdoc">The key of the Item, unique in a Bag. </div><div class="ttdef"><b>Definition:</b> <a href="../../d9/de0/Item_8java_source.html#l00034">Item.java:34</a></div></div>
<div class="ttc" id="classnars_1_1inference_1_1RuleTables_html"><div class="ttname"><a href="../../da/de3/classnars_1_1inference_1_1RuleTables.html">nars.inference.RuleTables</a></div><div class="ttdoc">Table of inference rules, indexed by the TermLinks for the task and the belief. </div><div class="ttdef"><b>Definition:</b> <a href="../../d1/d5e/RuleTables_8java_source.html#l00033">RuleTables.java:33</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_1_1NullEntityObserver_aaf10d6ba8cc6f19cda30a984307e1fce_html_aaf10d6ba8cc6f19cda30a984307e1fce"><div class="ttname"><a href="../../d5/dbd/classnars_1_1entity_1_1Concept_1_1NullEntityObserver_aaf10d6ba8cc6f19cda30a984307e1fce.html#aaf10d6ba8cc6f19cda30a984307e1fce">nars.entity.Concept.NullEntityObserver.refresh</a></div><div class="ttdeci">void refresh(String message)</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00501">Concept.java:501</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Bag_html"><div class="ttname"><a href="../../d9/d37/classnars_1_1storage_1_1Bag.html">nars.storage.Bag</a></div><div class="ttdoc">A Bag is a storage with a constant capacity and maintains an internal priority distribution for retri...</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/dce/Bag_8java_source.html#l00041">Bag.java:41</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_a501121a11fc046eea4b69720cb622d84_html_a501121a11fc046eea4b69720cb622d84"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_a501121a11fc046eea4b69720cb622d84.html#a501121a11fc046eea4b69720cb622d84">nars.entity.Concept.linkToTask</a></div><div class="ttdeci">void linkToTask(Task task)</div><div class="ttdoc">Link to a new task from all relevant concepts for continued processing in the near future for unspeci...</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00181">Concept.java:181</a></div></div>
<div class="ttc" id="classnars_1_1inference_1_1UtilityFunctions_html"><div class="ttname"><a href="../../d4/de4/classnars_1_1inference_1_1UtilityFunctions.html">nars.inference.UtilityFunctions</a></div><div class="ttdoc">Common functions on real numbers, mostly in [0,1]. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d95/UtilityFunctions_8java_source.html#l00028">UtilityFunctions.java:28</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_a5a010290c8c42603dd13387f415abf43_html_a5a010290c8c42603dd13387f415abf43"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_a5a010290c8c42603dd13387f415abf43.html#a5a010290c8c42603dd13387f415abf43">nars.entity.Concept.startPlay</a></div><div class="ttdeci">void startPlay(EntityObserver entityObserver, boolean showLinks)</div><div class="ttdoc">Start displaying contents and links, called from ConceptWindow, TermWindow or Memory.processTask only. </div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00443">Concept.java:443</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_1_1NullEntityObserver_a1cdca96b34fa590c63bd15460535fb47_html_a1cdca96b34fa590c63bd15460535fb47"><div class="ttname"><a href="../../d5/dbd/classnars_1_1entity_1_1Concept_1_1NullEntityObserver_a1cdca96b34fa590c63bd15460535fb47.html#a1cdca96b34fa590c63bd15460535fb47">nars.entity.Concept.NullEntityObserver.startPlay</a></div><div class="ttdeci">void startPlay(Concept concept, boolean showLinks)</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00497">Concept.java:497</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Stamp_html"><div class="ttname"><a href="../../d1/d1e/classnars_1_1entity_1_1Stamp.html">nars.entity.Stamp</a></div><div class="ttdoc">Each Sentence has a time stamp, consisting the following components: (1) The creation time of the sen...</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4f/Stamp_8java_source.html#l00035">Stamp.java:35</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_a37e00599fc19c5931da40bd446890f89_html_a37e00599fc19c5931da40bd446890f89"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_a37e00599fc19c5931da40bd446890f89.html#a37e00599fc19c5931da40bd446890f89">nars.entity.Concept.getBelief</a></div><div class="ttdeci">Sentence getBelief(Task task)</div><div class="ttdoc">Select a isBelief to interact with the given task in inference. </div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00385">Concept.java:385</a></div></div>
<div class="ttc" id="namespacenars_html"><div class="ttname"><a href="../../d7/d81/namespacenars.html">nars</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_adc7e06bbf7571dbe4df1de8d70fd89b9_html_adc7e06bbf7571dbe4df1de8d70fd89b9"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_adc7e06bbf7571dbe4df1de8d70fd89b9.html#adc7e06bbf7571dbe4df1de8d70fd89b9">nars.entity.Concept.entityObserver</a></div><div class="ttdeci">EntityObserver entityObserver</div><div class="ttdoc">The display window. </div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00065">Concept.java:65</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1TaskLink_html"><div class="ttname"><a href="../../d9/d27/classnars_1_1entity_1_1TaskLink.html">nars.entity.TaskLink</a></div><div class="ttdoc">Reference to a Task. </div><div class="ttdef"><b>Definition:</b> <a href="../../d3/dce/TaskLink_8java_source.html#l00032">TaskLink.java:32</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_a0884554b92012100e88cb32d8b24412f_html_a0884554b92012100e88cb32d8b24412f"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_a0884554b92012100e88cb32d8b24412f.html#a0884554b92012100e88cb32d8b24412f">nars.entity.Concept.toString</a></div><div class="ttdeci">String toString()</div><div class="ttdoc">Return a string representation of the concept, called in ConceptBag only. </div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00331">Concept.java:331</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_1_1NullEntityObserver_html"><div class="ttname"><a href="../../d5/dbd/classnars_1_1entity_1_1Concept_1_1NullEntityObserver.html">nars.entity.Concept.NullEntityObserver</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00488">Concept.java:488</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_a0c635b89db49fbe38d04e3c3088b5d15_html_a0c635b89db49fbe38d04e3c3088b5d15"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_a0c635b89db49fbe38d04e3c3088b5d15.html#a0c635b89db49fbe38d04e3c3088b5d15">nars.entity.Concept.stop</a></div><div class="ttdeci">void stop()</div><div class="ttdoc">Stop display, called from ConceptWindow only. </div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00463">Concept.java:463</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1TaskLink_a60ac6941518e78c1f0049b90437b9053_html_a60ac6941518e78c1f0049b90437b9053"><div class="ttname"><a href="../../d9/d27/classnars_1_1entity_1_1TaskLink_a60ac6941518e78c1f0049b90437b9053.html#a60ac6941518e78c1f0049b90437b9053">nars.entity.TaskLink.getTargetTask</a></div><div class="ttdeci">Task getTargetTask()</div><div class="ttdoc">Get the target Task. </div><div class="ttdef"><b>Definition:</b> <a href="../../d3/dce/TaskLink_8java_source.html#l00072">TaskLink.java:72</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_a3f45cdc40973611106276cfbc27a7a7a_html_a3f45cdc40973611106276cfbc27a7a7a"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_a3f45cdc40973611106276cfbc27a7a7a.html#a3f45cdc40973611106276cfbc27a7a7a">nars.storage.Memory.getConcept</a></div><div class="ttdeci">Concept getConcept(Term term)</div><div class="ttdoc">Get the Concept associated to a Term, or create it. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00176">Memory.java:176</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_1_1NullEntityObserver_a62346ca0add7b475c8167e3dcd1d9e8a_html_a62346ca0add7b475c8167e3dcd1d9e8a"><div class="ttname"><a href="../../d5/dbd/classnars_1_1entity_1_1Concept_1_1NullEntityObserver_a62346ca0add7b475c8167e3dcd1d9e8a.html#a62346ca0add7b475c8167e3dcd1d9e8a">nars.entity.Concept.NullEntityObserver.stop</a></div><div class="ttdeci">void stop()</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00499">Concept.java:499</a></div></div>
<div class="ttc" id="classnars_1_1inference_1_1UtilityFunctions_a24093a77b49f21322e62c9bed7ff5ee2_html_a24093a77b49f21322e62c9bed7ff5ee2"><div class="ttname"><a href="../../d4/de4/classnars_1_1inference_1_1UtilityFunctions_a24093a77b49f21322e62c9bed7ff5ee2.html#a24093a77b49f21322e62c9bed7ff5ee2">nars.inference.UtilityFunctions.or</a></div><div class="ttdeci">static float or(float...arr)</div><div class="ttdoc">A function where the output is disjunctively determined by the inputs. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d95/UtilityFunctions_8java_source.html#l00048">UtilityFunctions.java:48</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Sentence_html"><div class="ttname"><a href="../../d6/d25/classnars_1_1entity_1_1Sentence.html">nars.entity.Sentence</a></div><div class="ttdoc">A Sentence is an abstract class, mainly containing a Term, a TruthValue, and a Stamp. </div><div class="ttdef"><b>Definition:</b> <a href="../../da/d1c/Sentence_8java_source.html#l00031">Sentence.java:31</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1NullBagObserver_html"><div class="ttname"><a href="../../d4/d76/classnars_1_1storage_1_1NullBagObserver.html">nars.storage.NullBagObserver</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d15/NullBagObserver_8java_source.html#l00003">NullBagObserver.java:3</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_aaa97540563b646b33db1263fa3a97d53_html_aaa97540563b646b33db1263fa3a97d53"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_aaa97540563b646b33db1263fa3a97d53.html#aaa97540563b646b33db1263fa3a97d53">nars.storage.Memory.getTime</a></div><div class="ttdeci">long getTime()</div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00119">Memory.java:119</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_a27f92b156f0a25520e38a489ec6fc214_html_a27f92b156f0a25520e38a489ec6fc214"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a27f92b156f0a25520e38a489ec6fc214.html#a27f92b156f0a25520e38a489ec6fc214">nars.entity.BudgetValue.decPriority</a></div><div class="ttdeci">void decPriority(float v)</div><div class="ttdoc">Decrease priority value by a percentage of the remaining range. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00108">BudgetValue.java:108</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Term_ad85f45a7858737445d5158801774ff5f_html_ad85f45a7858737445d5158801774ff5f"><div class="ttname"><a href="../../d8/db8/classnars_1_1language_1_1Term_ad85f45a7858737445d5158801774ff5f.html#ad85f45a7858737445d5158801774ff5f">nars.language.Term.equals</a></div><div class="ttdeci">boolean equals(Object that)</div><div class="ttdoc">Equal terms have identical name, though not necessarily the same reference. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/df2/Term_8java_source.html#l00094">Term.java:94</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_a9bba24c2bbb3d9f36c0528a2760e8647_html_a9bba24c2bbb3d9f36c0528a2760e8647"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_a9bba24c2bbb3d9f36c0528a2760e8647.html#a9bba24c2bbb3d9f36c0528a2760e8647">nars.storage.Memory.setCurrentBeliefLink</a></div><div class="ttdeci">void setCurrentBeliefLink(TermLink currentBeliefLink)</div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00640">Memory.java:640</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_a40cddcc82ee28a1cf5b1f4bc14e2b078_html_a40cddcc82ee28a1cf5b1f4bc14e2b078"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_a40cddcc82ee28a1cf5b1f4bc14e2b078.html#a40cddcc82ee28a1cf5b1f4bc14e2b078">nars.entity.Concept.processJudgment</a></div><div class="ttdeci">void processJudgment(Task task)</div><div class="ttdoc">To accept a new judgment as isBelief, and check for revisions and solutions. </div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00114">Concept.java:114</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_1_1Parameters_a73b48af1550865dbcc0f15c4f0ad891f_html_a73b48af1550865dbcc0f15c4f0ad891f"><div class="ttname"><a href="../../da/d3b/classnars_1_1storage_1_1Memory_1_1Parameters_a73b48af1550865dbcc0f15c4f0ad891f.html#a73b48af1550865dbcc0f15c4f0ad891f">nars.storage.Memory.Parameters.MAX_REASONED_TERM_LINK</a></div><div class="ttdeci">static final int MAX_REASONED_TERM_LINK</div><div class="ttdoc">Maximum TermLinks used in reasoning for each Task in Concept. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l01087">Memory.java:1087</a></div></div>
<div class="ttc" id="classnars_1_1inference_1_1BudgetFunctions_html"><div class="ttname"><a href="../../d7/d11/classnars_1_1inference_1_1BudgetFunctions.html">nars.inference.BudgetFunctions</a></div><div class="ttdoc">Budget functions for resources allocation. </div><div class="ttdef"><b>Definition:</b> <a href="../../de/d4e/BudgetFunctions_8java_source.html#l00031">BudgetFunctions.java:31</a></div></div>
<div class="ttc" id="interfacenars_1_1entity_1_1EntityObserver_html"><div class="ttname"><a href="../../d4/d96/interfacenars_1_1entity_1_1EntityObserver.html">nars.entity.EntityObserver</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d8/dde/EntityObserver_8java_source.html#l00005">EntityObserver.java:5</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_1_1Parameters_a78a685447aedc396f4dbe6cd2748b8e8_html_a78a685447aedc396f4dbe6cd2748b8e8"><div class="ttname"><a href="../../da/d3b/classnars_1_1storage_1_1Memory_1_1Parameters_a78a685447aedc396f4dbe6cd2748b8e8.html#a78a685447aedc396f4dbe6cd2748b8e8">nars.storage.Memory.Parameters.MAXIMUM_QUESTIONS_LENGTH</a></div><div class="ttdeci">static final int MAXIMUM_QUESTIONS_LENGTH</div><div class="ttdoc">Maximum number of goals kept in a Concept. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l01143">Memory.java:1143</a></div></div>
<div class="ttc" id="interfacenars_1_1entity_1_1EntityObserver_a13aa9d16572c3d3bdc682b99e06d2698_html_a13aa9d16572c3d3bdc682b99e06d2698"><div class="ttname"><a href="../../d4/d96/interfacenars_1_1entity_1_1EntityObserver_a13aa9d16572c3d3bdc682b99e06d2698.html#a13aa9d16572c3d3bdc682b99e06d2698">nars.entity.EntityObserver.stop</a></div><div class="ttdeci">abstract void stop()</div></div>
<div class="ttc" id="classnars_1_1storage_1_1TermLinkBag_html"><div class="ttname"><a href="../../de/d86/classnars_1_1storage_1_1TermLinkBag.html">nars.storage.TermLinkBag</a></div><div class="ttdoc">Contains TermLinks to relevant (compound or component) Terms. </div><div class="ttdef"><b>Definition:</b> <a href="../../da/d69/TermLinkBag_8java_source.html#l00028">TermLinkBag.java:28</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_a2ab0b0c82e09c852076ce4c90c502d4c_html_a2ab0b0c82e09c852076ce4c90c502d4c"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_a2ab0b0c82e09c852076ce4c90c502d4c.html#a2ab0b0c82e09c852076ce4c90c502d4c">nars.entity.Concept.memory</a></div><div class="ttdeci">Memory memory</div><div class="ttdoc">Reference to the memory. </div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00063">Concept.java:63</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_1_1NARSBatch_html"><div class="ttname"><a href="../../d4/d88/classnars_1_1storage_1_1Memory_1_1NARSBatch.html">nars.storage.Memory.NARSBatch</a></div><div class="ttdoc">The main class of the project. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00722">Memory.java:722</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_a9ea7c3154932d7a736c105eb55daeb5c_html_a9ea7c3154932d7a736c105eb55daeb5c"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_a9ea7c3154932d7a736c105eb55daeb5c.html#a9ea7c3154932d7a736c105eb55daeb5c">nars.entity.Concept.directProcess</a></div><div class="ttdeci">void directProcess(Task task)</div><div class="ttdoc">Directly process a new task. </div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00096">Concept.java:96</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_acf3c7af84e64586a6b1d549f02bfeead_html_acf3c7af84e64586a6b1d549f02bfeead"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_acf3c7af84e64586a6b1d549f02bfeead.html#acf3c7af84e64586a6b1d549f02bfeead">nars.entity.Concept.getQuality</a></div><div class="ttdeci">float getQuality()</div><div class="ttdoc">Recalculate the quality of the concept [to be refined to show extension/intension balance]...</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00362">Concept.java:362</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Bag_a73a559e1b77e6bc3a7db686816accef2_html_a73a559e1b77e6bc3a7db686816accef2"><div class="ttname"><a href="../../d9/d37/classnars_1_1storage_1_1Bag_a73a559e1b77e6bc3a7db686816accef2.html#a73a559e1b77e6bc3a7db686816accef2">nars.storage.Bag.addBagObserver</a></div><div class="ttdeci">void addBagObserver(BagObserver bagObserver, String title)</div><div class="ttdoc">To start displaying the Bag in a BagWindow. </div><div class="ttdef"><b>Definition:</b> <a href="../../d6/dce/Bag_8java_source.html#l00303">Bag.java:303</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_a201858931ec115680ef147dc4819d92b_html_a201858931ec115680ef147dc4819d92b"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_a201858931ec115680ef147dc4819d92b.html#a201858931ec115680ef147dc4819d92b">nars.entity.Concept.termLinkTemplates</a></div><div class="ttdeci">ArrayList&lt; TermLink &gt; termLinkTemplates</div><div class="ttdoc">Link templates of TermLink, only in concepts with CompoundTerm jmv TODO explain more. </div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00057">Concept.java:57</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_a83976b43424cb26fe9cea8654cfee743_html_a83976b43424cb26fe9cea8654cfee743"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_a83976b43424cb26fe9cea8654cfee743.html#a83976b43424cb26fe9cea8654cfee743">nars.entity.Concept.addToTable</a></div><div class="ttdeci">void addToTable(Sentence newSentence, ArrayList&lt; Sentence &gt; table, int capacity)</div><div class="ttdoc">Add a new belief (or goal) into the table Sort the beliefs/goals by rank, and remove redundant or low...</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00214">Concept.java:214</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Sentence_a7d95d60caaf4c895559182a7eb2ff71e_html_a7d95d60caaf4c895559182a7eb2ff71e"><div class="ttname"><a href="../../d6/d25/classnars_1_1entity_1_1Sentence_a7d95d60caaf4c895559182a7eb2ff71e.html#a7d95d60caaf4c895559182a7eb2ff71e">nars.entity.Sentence.isJudgment</a></div><div class="ttdeci">boolean isJudgment()</div><div class="ttdoc">Distinguish Judgment from Goal ("instanceof Judgment" doesn&#39;t work) </div><div class="ttdef"><b>Definition:</b> <a href="../../da/d1c/Sentence_8java_source.html#l00181">Sentence.java:181</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_1_1NARSBatch_a7e7f64ef4334dd4c3c757937f906ca70_html_a7e7f64ef4334dd4c3c757937f906ca70"><div class="ttname"><a href="../../d4/d88/classnars_1_1storage_1_1Memory_1_1NARSBatch_a7e7f64ef4334dd4c3c757937f906ca70.html#a7e7f64ef4334dd4c3c757937f906ca70">nars.storage.Memory.NARSBatch.isStandAlone</a></div><div class="ttdeci">static boolean isStandAlone()</div><div class="ttdoc">Whether the project running as an application. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00836">Memory.java:836</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_1_1NullEntityObserver_abac1e4ef70dabe578c80be1470b5a2fc_html_abac1e4ef70dabe578c80be1470b5a2fc"><div class="ttname"><a href="../../d5/dbd/classnars_1_1entity_1_1Concept_1_1NullEntityObserver_abac1e4ef70dabe578c80be1470b5a2fc.html#abac1e4ef70dabe578c80be1470b5a2fc">nars.entity.Concept.NullEntityObserver.createBagObserver</a></div><div class="ttdeci">BagObserver createBagObserver()</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00493">Concept.java:493</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_a765f58846c419efbd2d9f1a0dd9f4c4d_html_a765f58846c419efbd2d9f1a0dd9f4c4d"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_a765f58846c419efbd2d9f1a0dd9f4c4d.html#a765f58846c419efbd2d9f1a0dd9f4c4d">nars.storage.Memory.activateConcept</a></div><div class="ttdeci">void activateConcept(Concept c, BudgetStruct b)</div><div class="ttdoc">Adjust the activation level of a Concept. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00200">Memory.java:200</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Term_html"><div class="ttname"><a href="../../d8/db8/classnars_1_1language_1_1Term.html">nars.language.Term</a></div><div class="ttdoc">Term is the basic component of Narsese, and the object of processing in NARS. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/df2/Term_8java_source.html#l00040">Term.java:40</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_a64d60676d973a0ebf9132552d01522c2_html_a64d60676d973a0ebf9132552d01522c2"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_a64d60676d973a0ebf9132552d01522c2.html#a64d60676d973a0ebf9132552d01522c2">nars.entity.Concept.questions</a></div><div class="ttdeci">List&lt; Task &gt; questions</div><div class="ttdoc">Question directly asked about the term. </div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00059">Concept.java:59</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_a3da4b5320acef5ecbcb256090e4aff94_html_a3da4b5320acef5ecbcb256090e4aff94"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_a3da4b5320acef5ecbcb256090e4aff94.html#a3da4b5320acef5ecbcb256090e4aff94">nars.entity.Concept.evaluation</a></div><div class="ttdeci">Sentence evaluation(Sentence query, Iterable&lt; Sentence &gt; list)</div><div class="ttdoc">Evaluate a query against beliefs (and desires in the future) </div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00245">Concept.java:245</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Stamp_adb33cdf9f13e1a919f7220cb622e7446_html_adb33cdf9f13e1a919f7220cb622e7446"><div class="ttname"><a href="../../d1/d1e/classnars_1_1entity_1_1Stamp_adb33cdf9f13e1a919f7220cb622e7446.html#adb33cdf9f13e1a919f7220cb622e7446">nars.entity.Stamp.equals</a></div><div class="ttdeci">boolean equals(Object that)</div><div class="ttdoc">Check if two stamps contains the same content. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d4f/Stamp_8java_source.html#l00193">Stamp.java:193</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_a3c69b71b1987ca4066c9b3d2a7973dd1_html_a3c69b71b1987ca4066c9b3d2a7973dd1"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_a3c69b71b1987ca4066c9b3d2a7973dd1.html#a3c69b71b1987ca4066c9b3d2a7973dd1">nars.entity.Concept.insertTermLink</a></div><div class="ttdeci">void insertTermLink(TermLink termLink)</div><div class="ttdoc">Insert a TermLink into the TermLink bag. </div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00313">Concept.java:313</a></div></div>
<div class="ttc" id="classnars_1_1inference_1_1BudgetFunctions_a5c7290e12cda0925b936c07ed7b806f3_html_a5c7290e12cda0925b936c07ed7b806f3"><div class="ttname"><a href="../../d7/d11/classnars_1_1inference_1_1BudgetFunctions_a5c7290e12cda0925b936c07ed7b806f3.html#a5c7290e12cda0925b936c07ed7b806f3">nars.inference.BudgetFunctions.rankBelief</a></div><div class="ttdeci">static float rankBelief(Sentence judg)</div><div class="ttdoc">Determine the rank of a judgment by its confidence and originality (stamp length) ...</div><div class="ttdef"><b>Definition:</b> <a href="../../de/d4e/BudgetFunctions_8java_source.html#l00057">BudgetFunctions.java:57</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_a06378e75b0874a8ef80a7f1ac6cdebcd_html_a06378e75b0874a8ef80a7f1ac6cdebcd"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_a06378e75b0874a8ef80a7f1ac6cdebcd.html#a06378e75b0874a8ef80a7f1ac6cdebcd">nars.entity.Concept.toStringIfNotNull</a></div><div class="ttdeci">String toStringIfNotNull(Object item, String title)</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00353">Concept.java:353</a></div></div>
<div class="ttc" id="namespacenars_1_1language_html"><div class="ttname"><a href="../../d0/d72/namespacenars_1_1language.html">nars.language</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d0e/CompoundTerm_8java_source.html#l00021">CompoundTerm.java:21</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1TermLink_a795ea0b57cd6467bbe2a8f68a34cba02_html_a795ea0b57cd6467bbe2a8f68a34cba02"><div class="ttname"><a href="../../d4/d8b/classnars_1_1entity_1_1TermLink_a795ea0b57cd6467bbe2a8f68a34cba02.html#a795ea0b57cd6467bbe2a8f68a34cba02">nars.entity.TermLink.getType</a></div><div class="ttdeci">short getType()</div><div class="ttdoc">Get the link type. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/daa/TermLink_8java_source.html#l00151">TermLink.java:151</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_aef21f5ae7bef5194bd37ae526302843d_html_aef21f5ae7bef5194bd37ae526302843d"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_aef21f5ae7bef5194bd37ae526302843d.html#aef21f5ae7bef5194bd37ae526302843d">nars.entity.Concept.insertTaskLink</a></div><div class="ttdeci">void insertTaskLink(TaskLink taskLink)</div><div class="ttdoc">Insert a TaskLink into the TaskLink bag. </div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00269">Concept.java:269</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_add08a37b7cf7b272838532c942c083a4_html_add08a37b7cf7b272838532c942c083a4"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_add08a37b7cf7b272838532c942c083a4.html#add08a37b7cf7b272838532c942c083a4">nars.entity.Concept.play</a></div><div class="ttdeci">void play()</div><div class="ttdoc">Resume display, called from ConceptWindow only. </div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00456">Concept.java:456</a></div></div>
<div class="ttc" id="interfacenars_1_1storage_1_1BagObserver_html"><div class="ttname"><a href="../../df/d32/interfacenars_1_1storage_1_1BagObserver.html">nars.storage.BagObserver</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d8/de1/BagObserver_8java_source.html#l00003">BagObserver.java:3</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1TermLinkBag_a2f98120a5db1a3c065d3dc5712562d71_html_a2f98120a5db1a3c065d3dc5712562d71"><div class="ttname"><a href="../../de/d86/classnars_1_1storage_1_1TermLinkBag_a2f98120a5db1a3c065d3dc5712562d71.html#a2f98120a5db1a3c065d3dc5712562d71">nars.storage.TermLinkBag.takeOut</a></div><div class="ttdeci">TermLink takeOut(TaskLink taskLink, long time)</div><div class="ttdoc">Replace default to prevent repeated inference, by checking TaskLink. </div><div class="ttdef"><b>Definition:</b> <a href="../../da/d69/TermLinkBag_8java_source.html#l00059">TermLinkBag.java:59</a></div></div>
<div class="ttc" id="classnars_1_1inference_1_1RuleTables_ac2d01dfdc40bdd47c757cb549217e6e3_html_ac2d01dfdc40bdd47c757cb549217e6e3"><div class="ttname"><a href="../../da/de3/classnars_1_1inference_1_1RuleTables_ac2d01dfdc40bdd47c757cb549217e6e3.html#ac2d01dfdc40bdd47c757cb549217e6e3">nars.inference.RuleTables.reason</a></div><div class="ttdeci">static void reason(TaskLink tLink, TermLink bLink, Memory memory)</div><div class="ttdoc">Entry point of the inference engine. </div><div class="ttdef"><b>Definition:</b> <a href="../../d1/d5e/RuleTables_8java_source.html#l00045">RuleTables.java:45</a></div></div>
<div class="ttc" id="interfacenars_1_1entity_1_1EntityObserver_aef3ebd18d9e7d210d5c46e49e749142a_html_aef3ebd18d9e7d210d5c46e49e749142a"><div class="ttname"><a href="../../d4/d96/interfacenars_1_1entity_1_1EntityObserver_aef3ebd18d9e7d210d5c46e49e749142a.html#aef3ebd18d9e7d210d5c46e49e749142a">nars.entity.EntityObserver.startPlay</a></div><div class="ttdeci">abstract void startPlay(Concept concept, boolean showLinks)</div></div>
<div class="ttc" id="classnars_1_1storage_1_1TaskLinkBag_html"><div class="ttname"><a href="../../dc/d45/classnars_1_1storage_1_1TaskLinkBag.html">nars.storage.TaskLinkBag</a></div><div class="ttdoc">TaskLinkBag contains links to tasks. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d9c/TaskLinkBag_8java_source.html#l00029">TaskLinkBag.java:29</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_aa4c7e1f5823d0404c0cab49b617968f1_html_aa4c7e1f5823d0404c0cab49b617968f1"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_aa4c7e1f5823d0404c0cab49b617968f1.html#aa4c7e1f5823d0404c0cab49b617968f1">nars.storage.Memory.getRecorder</a></div><div class="ttdeci">IInferenceRecorder getRecorder()</div><div class="ttdoc">Inference record text to be written into a log file. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00111">Memory.java:111</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1CompoundTerm_html"><div class="ttname"><a href="../../d0/dee/classnars_1_1language_1_1CompoundTerm.html">nars.language.CompoundTerm</a></div><div class="ttdoc">A CompoundTerm is a Term with internal (syntactic) structure. </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d0e/CompoundTerm_8java_source.html#l00036">CompoundTerm.java:36</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Sentence_a721f626ab83f34dc2e6858a4eede7102_html_a721f626ab83f34dc2e6858a4eede7102"><div class="ttname"><a href="../../d6/d25/classnars_1_1entity_1_1Sentence_a721f626ab83f34dc2e6858a4eede7102.html#a721f626ab83f34dc2e6858a4eede7102">nars.entity.Sentence.clone</a></div><div class="ttdeci">Object clone()</div><div class="ttdoc">Clone the Sentence. </div><div class="ttdef"><b>Definition:</b> <a href="../../da/d1c/Sentence_8java_source.html#l00122">Sentence.java:122</a></div></div>
<div class="ttc" id="interfacenars_1_1entity_1_1EntityObserver_a3c3e962c8312f339b670085de1e3de67_html_a3c3e962c8312f339b670085de1e3de67"><div class="ttname"><a href="../../d4/d96/interfacenars_1_1entity_1_1EntityObserver_a3c3e962c8312f339b670085de1e3de67.html#a3c3e962c8312f339b670085de1e3de67">nars.entity.EntityObserver.refresh</a></div><div class="ttdeci">void refresh(String message)</div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_html"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue.html">nars.entity.BudgetValue</a></div><div class="ttdoc">A triple of priority (current), durability (decay), and quality (long-term average). </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00031">BudgetValue.java:31</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_afcd1217b7680b073fa51f0d0f159dcea_html_afcd1217b7680b073fa51f0d0f159dcea"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_afcd1217b7680b073fa51f0d0f159dcea.html#afcd1217b7680b073fa51f0d0f159dcea">nars.entity.Concept.getTerm</a></div><div class="ttdeci">Term getTerm()</div><div class="ttdoc">Return the associated term, called from Memory only. </div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00322">Concept.java:322</a></div></div>
<div class="ttc" id="classnars_1_1inference_1_1LocalRules_a91eadfda9f647cd8e799b4f982e14fca_html_a91eadfda9f647cd8e799b4f982e14fca"><div class="ttname"><a href="../../d4/de9/classnars_1_1inference_1_1LocalRules_a91eadfda9f647cd8e799b4f982e14fca.html#a91eadfda9f647cd8e799b4f982e14fca">nars.inference.LocalRules.solutionQuality</a></div><div class="ttdeci">static float solutionQuality(Sentence problem, Sentence solution)</div><div class="ttdoc">Evaluate the quality of the judgment as a solution to a problem. </div><div class="ttdef"><b>Definition:</b> <a href="../../d0/db7/LocalRules_8java_source.html#l00148">LocalRules.java:148</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Item_a7c18bbc91147504a285041d636284acd_html_a7c18bbc91147504a285041d636284acd"><div class="ttname"><a href="../../d1/dd1/classnars_1_1entity_1_1Item_a7c18bbc91147504a285041d636284acd.html#a7c18bbc91147504a285041d636284acd">nars.entity.Item.toStringBrief</a></div><div class="ttdeci">String toStringBrief()</div><div class="ttdoc">Return a String representation of the Item after simplification. </div><div class="ttdef"><b>Definition:</b> <a href="../../d9/de0/Item_8java_source.html#l00187">Item.java:187</a></div></div>
<div class="ttc" id="classnars_1_1inference_1_1BudgetFunctions_a9c5299387c81abfc7a7c6fbf72febdc3_html_a9c5299387c81abfc7a7c6fbf72febdc3"><div class="ttname"><a href="../../d7/d11/classnars_1_1inference_1_1BudgetFunctions_a9c5299387c81abfc7a7c6fbf72febdc3.html#a9c5299387c81abfc7a7c6fbf72febdc3">nars.inference.BudgetFunctions.distributeAmongLinks</a></div><div class="ttdeci">static BudgetValue distributeAmongLinks(BudgetStruct b, int n)</div><div class="ttdoc">Distribute the budget of a task among the links to it. </div><div class="ttdef"><b>Definition:</b> <a href="../../de/d4e/BudgetFunctions_8java_source.html#l00169">BudgetFunctions.java:169</a></div></div>
<div class="ttc" id="classnars_1_1inference_1_1RuleTables_a61c932b424464483bd80c783294ab446_html_a61c932b424464483bd80c783294ab446"><div class="ttname"><a href="../../da/de3/classnars_1_1inference_1_1RuleTables_a61c932b424464483bd80c783294ab446.html#a61c932b424464483bd80c783294ab446">nars.inference.RuleTables.transformTask</a></div><div class="ttdeci">static void transformTask(TaskLink tLink, Memory memory)</div><div class="ttdoc">The TaskLink is of type TRANSFORM, and the conclusion is an equivalent transformation. </div><div class="ttdef"><b>Definition:</b> <a href="../../d1/d5e/RuleTables_8java_source.html#l00738">RuleTables.java:738</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_ed82ebcd34e530b246c6fd9032262140.html">aruntime</a></li><li class="navelem"><a class="el" href="../../dir_19496ddff8e6c0f2b6654287ecb1a472.html">src</a></li><li class="navelem"><a class="el" href="../../dir_db9c5934f797909f7296c2c2017f7fc9.html">main</a></li><li class="navelem"><a class="el" href="../../dir_6d74390eb6d6287951075e525bcb9bed.html">java</a></li><li class="navelem"><a class="el" href="../../dir_51a24984472456d47100350cd31f9a7c.html">nars</a></li><li class="navelem"><a class="el" href="../../dir_c3c9ea9f52870ae82b0fae20af0d9479.html">entity</a></li><li class="navelem"><a class="el" href="../../df/d62/Concept_8java.html">Concept.java</a></li>
    <li class="footer">Generated on Sun Jan 10 2016 18:03:58 for opennars by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
  </ul>
</div>
</body>
</html>
